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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.