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

How can I run script listener for project category?

Peter Kaufmann January 24, 2020

Script Listener can be changed to run for selected projects, but I want to select a 'project category'. The screen for custom listener shows only drop down list for project. How can I select a project category?

Do I need a extra line in the script? Something like this:

 

if (issue.projectObject.projectCategoryObject?.name == '...') {
    ...
}

 

2 answers

1 accepted

Suggest an answer

Log in or Sign up to answer
1 vote
Answer accepted
SITTER_Adrien
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.
January 24, 2020

Hello Peter,

Select "All Project" for your Listener. The line you post works well in my jira.

Sincerely,

Adrien

0 votes
Mark Crocker February 16, 2020

Yeh this won't work in script listener on cloud. 
I think there has to be a getProject something or other... looking myself for this answer

TAGS
AUG Leaders

Atlassian Community Events