Forums

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

Jira Behaviour still showing default value

Deleted user September 30, 2020

Hi I want to restrict the priority field by the selected issue type to show only several priorities per type:

Customer Issuetype -> Priorities (Major, Critical, Medium, Minor)

Internal Issuetype -> Priorities (Non Affecting, Indeterminate)

I added a behaviour with ScriptRunner Plugin and used the initiliser and it works more less. My problem is, that the Priority "Medium" is always in the available list of prioritites, since it is the default priority and it is preselected. That means, even if I chose "Internal" the preselected value is "Medium" and only the available list of priorities show (Non Affecting, Indeterminate)

Any solution to this?

I attached a screenshot of my script initiliser

Behaviour.PNG

 

1 answer

0 votes
Niranjan
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.
September 30, 2020

@[deleted] - Why don't you try making a different priority value as default and then disable it? In that case, the Medium will no more be default value

Deleted user September 30, 2020

What do you mean with "disabling deafault priority after changing it"? I already tried to set "None" as default priority as it seems to be possible in the priority scheme but it has no effect - "Medium" is still chosen per default.

My Workaround for now -> in case "Issuetype == Internal" I set a different default value with .setFormValue("Non Service Affecting") because I realized .setFieldOptions just sets the DropDownOptions.

Niranjan
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.
September 30, 2020

@[deleted] - You workaround seems good, however we need to understand why priority scheme is not working? Is that working when you disable the behavior?

Deleted user October 5, 2020

No not at all. It's always Medium as default unless we set another value (except "None") as default.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events