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