How to validate multi select list field based other multi select field?

Hi Jamie,

we are using script runner plug-in and we have requirement on all transition like:   "Message Integration Change Type"(Multi select Field) is required if "Message Integration Change" (Multi select Field)is not blank.

Please let us know the script systax to add above validation.

Thanks In Advance.

Regards,

Suresh.

 

2 answers

1 accepted

This widget could not be displayed.

Something like 

if (cfValues["Message Integration Change"]) {
    return cfValues["Message Integration Change Type"] as Boolean
}
true

but you really need to test for yourself.

This widget could not be displayed.

It is working.Thank you so much Jamie.

we have an one more requirement like.

1."Message Integration Change" multiselect - values are "Requested" and "Approved."

2."Message Integration Change" field value 'Approved' need to be set by only particular group.

3. When ever "Message Integration Change Type" field value is selected or changed,we need to notify mail to particular group.

4.we do not allow state transitions to "Development", "Testing", or "RCT" if the "Message Integration Change" is set to Requested.(can we show error message, while moving to those status,"Message Integration Change" is need to be set "Approve" to move forward status)

Could you help on this.

Best Regards,

Suresh

 

please ask a new question... multiple questions in the same question don't help anyone with a similar problem. thanks.

Hi Jamie, The above script error message showing on only create screen.It is not show error message on all 'Transition' Screen. Can help us show error message on all transitions? Thanks your help. Regards, Suresh

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

209 views 1 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you