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: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

TAGS
AUG Leaders

Atlassian Community Events