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

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
Community showcase
Posted Oct 16, 2018 in Jira

Looking for anyone who made the switch to Data Center

The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...

1,339 views 17 10
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