Hello there, could someone help me in the follow scenario using SIL SCRIPT FOR Jira Server.
Based on the selection of an item from the select list custom field..how to ADD a user or multiple users to a multi user custom field?
Regards,
Sami Ahmed Shaik.
Which part do you need help with?
Or do you need both?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For your first part, are you using a single select list or a multi select list? That will affect the code.
For a single select list you could do
if ( #{single_list} == value) {
do stuff
}
For a multi select, you treat it as an array
if ( arrayElementExists(#{select_list},value)) {
do stuff
}
Adding a user to a multiuser custom field is also an array operations
arrayAddElementIfNotExist(#{MultiUserList}, user)
Look at the array routines on the SIL documentation page
https://confluence.cprime.io/display/SIL/Array+routines
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register NowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.