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
@[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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@[deleted] - You workaround seems good, however we need to understand why priority scheme is not working? Is that working when you disable the behavior?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No not at all. It's always Medium as default unless we set another value (except "None") as default.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.