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

1 vote

Something like 

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

but you really need to test for yourself.

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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,321 views 14 20
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot