The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Configure ScriptRunner to except behaviour for specific issue type

Zhivko Zhelev
January 31, 2022

Hello Team,

 

We have configured ScriptRunner not to allow specific group to edit ETA field.

 

However, we want to make them edit the ETA field if the issue type is EPIC only.

 

Is that possible? Should we use script with additional condition?

2 answers

2 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Zhivko Zhelev
January 31, 2022

@Tim Perrault 

 

Thanks for your reply.

 

The problem is that the mapping will apply for other restrictions I have applied for other fields, and I want it to apply only for the ETA.

 

Thanks

Zhivko

Tim Perrault
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 Champions.
January 31, 2022

I would still use the mapping, but also create another behaviour that only fires on the Epic issue type. It will basically be a copy of the first behaviour, make the needed adjustments so that the specific group can edit the ETA field.

 

Or if you can, post the code and maybe we can adjust it with an if than statement, but I still stand by the mapping solution :)

0 votes
Answer accepted
Tim Perrault
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 Champions.
January 31, 2022

Hi @Zhivko Zhelev

 

The easiest thing that I can think to do here is change the mapping on the behaviour  so that all the issues are selected except for Epic. This will fire the behaviour on every issue type except for Epic.

 

Thanks,

Tim