Forums

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

Power Scripts restrict certain priority levels by user group

Craig Bucklow January 31, 2019

I've recently installed Power Scripts and am looking for a sample on how to write code to allow only a few members (using a group) to set the priority type field to our highest priority level. Any ideas? I already know how to write the error message part and the get the groups.

1 answer

0 votes
Alexey Matveev
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 31, 2019

Hello,

The problem is that in Jira Cloud you can write only post functions (validators and conditions are not allowed in Cloud). Post functions can not cancel the user input. You can only modify it. For example, if a user is not in a certain group and the user set the highest priority, then you can lower this priority.

Suggest an answer

Log in or Sign up to answer