Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Getting Project Key

G Sunil Kumar June 7, 2021

Hello,

 

Is it possible to get the key of a project for based on Project Picker Custom Field.

 

Example :-

My custom field name is "Project" which is project picker and I can get the value which gives the name of the project. But I want to get the Project Key of that value. 

 

Can anyone suggest a code or restapi any method is fine.

 

Regards,

Sunil

1 answer

1 accepted

1 vote
Answer accepted
Payne
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 8, 2021

The Project class has a getKey() method that you could perhaps use in a post function.

https://docs.atlassian.com/software/jira/docs/api/7.6.1/com/atlassian/jira/project/Project.html 

G Sunil Kumar June 8, 2021

Hi @Payne ,

 

Thank you, The document helped.

 

Regards,

Sunil

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events