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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

Meet the AUG leaders of Northern Virginia

@Rachel Wright (Jira Genie), @Billy Poggi (AUG NOVA, DC), and @Dana Jansen (Confluence Queen) are just some of the folks that lead one of the world's most active Atlassian User Group (AUG)....

154 views 5 9
Read article

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