Forums

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

scriptrunner get projectId

fzctx December 18, 2018

How do get project Id.

2 answers

0 votes
Nic Brough -Adaptavist-
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.
December 18, 2018

issue.getProjectObject().getID()

should do it.  Of course, it depends on where you're running it - I've assumed the script has an issue in mind (a post-function, condition or validator for example)

0 votes
Elifcan Cakmak
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.
December 18, 2018

Hello,

You can get the project id of an issue like this:

issue.getProjectId()

Regards,

Elifcan

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events