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

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 Leaders.
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 Leaders.
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

Suggest an answer

Log in or Sign up to answer