Forums

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

Script Runner Listener "Fast-track transition an issue"

maxi August 6, 2019

I am trying to use this option to tailor down the custom fields which are shown in an issue based on the options which are selected inside of that issue (e.g. if "Priority" == 'Major' show custom field "test1").

What would be the best way to do it? Using workflow transitions and screens or can a script be written to show a specific field when "Priority" is 'Major', and then to hide that one and show another one when it changes to 'Medium'?

 

 

Jira 8.2.4, Scriptrunner 5.5.9.1

1 answer

1 vote
Ilya Turov
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.
August 6, 2019

I'm not sure if I understand you here, but "Fast-track an issue" listener forces a transition after a certain event if an issue fits some condition.

What you are asking looks more like some kind of behaviour case for me, where depending on the issue's priority you hide or display certain fields on a transition (if I understood you correctly)

maxi August 8, 2019

Hi Ilya,

Thanks for a prompt reply!

I have made a script using behavior, as you've recommended me. It hides the custom field which I don't need and shows the one I do, but it only works in the edit screen, it does not effect the view screen.
Could it be an issue that the field has a default value (it is not empty), so it is always shown?

Is there a way to change screens according to the value of a custom field? Maybe that could work

Ilya Turov
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.
August 8, 2019

unfortunately, behaviours don't work on a view screen

so yeah, if the field is on a view screen and it has some value it will always be shown

maybe there are different plugins out there which can hide fields on a view screen, but Im not sure

Suggest an answer

Log in or Sign up to answer