Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Syntax for Checkbox conditions on scripted e-mail post-function.

Bryan McMillan
Contributor
May 6, 2015

What is the proper syntax for a condition involving one or more selections of a checkbox field?  We have for example 'Affected Areas' with choices like, Application, Database, Network, etc.  The syntax:

 

cfValues['Affected Area'] == 'Database'

 

Doesn't work.

 

Regards,

 

Bryan

3 answers

1 accepted

0 votes
Answer accepted
Bryan McMillan
Contributor
May 8, 2015

Ok, after some significant digging on the Internet I found a solution for check boxes that works:

 

cfValues['Affected Area']*.value.contains("Database") 

 

Thanks much Jamie!!!!

 

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 8, 2015

that's the same as my example...

1 vote
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 6, 2015
'Database' in cfValues['Affected Area']*.value
0 votes
Jozef Kotlár
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 6, 2015

Did you ever tried Power assertion in _Simple script condition_ interface? https://jamieechlin.atlassian.net/wiki/display/GRV/Built-In+Scripts#Built-InScripts-PowerAssertions

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, jira cloud certification, managing jira projects, jira project administration, jira cloud exam, atlassian certification, agile project management, jira workflows, jira permissions, jira training, jira cloud skills, atlassian learning

Become a Certified Jira Service Project Expert 🦸🏻‍♂️

Validate your expertise in managing Jira Service Projects for Cloud. Master configuration, optimize workflows, and manage users seamlessly. Earn global 🗺️ recognition and advance your career as a trusted Jira Service management expert.

Get Certified! ✍️
AUG Leaders

Atlassian Community Events