You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.
Join groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
hi,
jira software 7.x was dynamically control the list of users in the user-picker field within the behaviors.
but, starting with jira software 8.x version, it seems impossible to control the user-picker field within the behaviors.
The list of users in the user-picker field should appear differently depending on the conditions, is there any other way?
Thank you.
To answer your question, you can easily update the user picker based on another field's value using the Behaviour.
Below is a sample working code for your reference:-
def optionsField = getFieldById(fieldChanged)
def optionsValue = optionsField.value.toString()
def userPicker = getFieldByName("User")
if(optionsValue == "DB") {
userPicker.setFormValue("admin")
} else if(optionsValue == "UI") {
userPicker.setFormValue("max")
} else if(optionsValue == "Web Service") {
userPicker.setFormValue("ram")
}
Please note this sample code is not 100% exact to your environment. Hence you will need to modify it accordingly.
You will need to use the Server-Side Behaviour for the code above. The Options field is a single select list, and the User field is a single user picker.
Below is a print screen of the sample behaviour configuration:-
If the option selected is DB in the sample code above, automatically, the user field updates to Admin.
If the option changes to UI, the user is set to Max.
Finally, if the option selected is Web Service, the user field changes to Ram.
I hope this helps to solve your question :)
Thank you and Kind Regards,
Ram
This morning, Atlassian announced the acquisition of ThinkTilt , the maker of ProForma, a no-code/low code form builder with 700+ customers worldwide. ThinkTilt helps IT empower any team in their or...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.