Set Priority using Behaviuor Plugin Bug


*This issue has moved*

This issue has been moved permanently to Adaptavist's Product Support JIRA instance.

All existing users of this instance should have the same username on our Product Support instance. However, you will very likely need to click on the
Can't access your account link in order to reset to a new password.

I need to set priority of all issues in a JIRA project to a value which is not the default system priority.
Once the behaviour executes on the Create issue page, it does not refresh the priority drop down field. But when I submit the issue, I see the new priority is set. Is there any issue with the create page not getting refreshed with the new priority?

I am using this script:

import com.atlassian.jira.issue.IssueFieldConstants
import java.util.List

FormField formPriority = getFieldById("priority")
log.warn("Test Comment from Behaviour from Summary change:" + formPriority.getValue() )
List<String> myList = new ArrayList<String>();
myList[0] = "5"




Vladimir Pakhalin
April 12, 2013, 12:34 PM

I change some code in clientval.js, may be it help for you

Vidic Florjan
April 3, 2013, 6:35 PM

FormField formPriority = getFieldById("priority-field")
formPriority.setFormValue("Trivial") //match to priority value = "5"

With this code only the value in the Edit window is changed.

I need to add the following code also (to see the new value in the issue):

FormField formPriority0 = getFieldById("priority")
formPriority0.setFormValue(5) //match to priority value = "5"

But the icon still won't change...

Vladimir Pakhalin
March 29, 2013, 7:58 AM

If try

priority field value will be changed, but the icon won't change...

I hope this (setFormValue for Priority Field) will be fixed by Jamie!

Russ Frizzell
March 4, 2013, 8:58 PM

Great plug-in by the way, Jamie...

I have also had this issue and still have a problem with it currently. I have tried many different ways to set the priority field, but it does not change until after you submit the edit/create.

Rahul K
March 1, 2013, 11:13 AM

Hi Jamie,

Is this a known behaviuor?


Your pinned fields
Click on the next to a field label to start pinning.


Jamie Echlin


Rahul K

Internal Complexity


Internal Value