Restrict priorities by group with Script Runner Behaviours and Jira priority schemes

Thomas Heidenreich
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.
February 7, 2018

The example provided in https://scriptrunner.adaptavist.com/5.3.1/jira/recipes/behaviours/restricting-priority-and-resolution.html#_restrict_priorities_by_group does not work as using the ConstantsManager to get the available priorities cannot be used in this context. 

It seems I cannot find a way to get a list of available options in the Behaviour script - the PrioritySchemeManager class cannot be resolved and I cannot come up with another way of getting the available priorities.

Anyone having an idea?

Thanks :)
Thomas

1 answer

1 accepted

0 votes
Answer accepted
Jenna Davis
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.
February 9, 2018

Hello,

Why are you not able to use ConstantsManager?

You might be able to use this method from the priority manager class. 

If you need further help, could you send the script you are currently working on?

Jenna

Thomas Heidenreich
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.
March 1, 2018

Was a version mixup and an interrupting plugin.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events