Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira REST api project question (What is projectKeys for? and how is it different than key?)

Brian
Contributor
June 19, 2019

I'm currently exploring the use of this API: https://my.jira-url.com/rest/api/latest/project

I use json-csv.com to convert the json to more readable csv format for my eyes.  I noticed the first column of the JSON returned is called expand.  In it there's a parameter called "projectKeys".

How is "projectKeys" different that the normal "key" that is returned.  Why would I want to use this parameter in the expand feature?

Description and lead and url I get because I don't normally receive that information unless I call them in the expand query.  I just don't get what "projectKeys" gives me that I'm normally not getting.

Thank you in advance,

 

 

1 answer

1 accepted

1 vote
Answer accepted
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 20, 2019

Hello,

You can change the project key to any other project key. The key value returns the current project key. Projectkeys returns all project keys for the project.

Brian
Contributor
June 24, 2019

Oh I see, that's useful.  Thank you Alexey for the clearly explained answer.  Kudos to you.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events