Forums

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

Conditional Logic for a post function ticket to only create when field is equal to Yes

Megan Hannon August 31, 2021

I am working on adding conditional logic to a post function I am building with the  Create/Clone issue (JMWE app).  

This is what I would like the conditional logic to do: 

               If the hiring manger selects "Yes" on a question "Will new employee require Jira                     access" I want to trigger a post function ticket to our IT service desk. 

               If the hiring manager selects "No" No ticket should be created. 

 I added the condition cfValues['Will new employee require Jira access'] == 'yes' thinking that if I set the custom field value equal to "Yes" the post function ticket would only create when Yes is selected in the custom field. 

The issue is that the post function with the condition is not failing but also not creating a new ticket. Do you have any suggestions on how to configure the conditional post function to trigger successfully?

1 answer

1 accepted

1 vote
Answer accepted
Megan Hannon August 31, 2021

I solved it! I needed to use the single select list script. cfValues['My Select List']?.value == 'My value'

Suggest an answer

Log in or Sign up to answer