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:
FormField formPriority = getFieldById("priority")
log.warn("Test Comment from Behaviour from Summary change:" + formPriority.getValue() )
List<String> myList = new ArrayList<String>();
myList = "5"
I change some code in clientval.js, may be it help for you
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...
priority field value will be changed, but the icon won't change...
I hope this (setFormValue for Priority Field) will be fixed by Jamie!
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.
Is this a known behaviuor?