Forums

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

Need help with JMWE post function Condition

CHINNAMUTHEVISAI.SATYANARAYANASHARMA
Contributor
May 21, 2024

for task workflow when status is in new and if attachment was not added when status is New it should add a comment that Please supply image and ticket should assign to hub exceptions user. i know we can do this through automation but we want to use workflow only here.

i have created a custom field called image attached with values Yes and No.

when image attached value is No then it should add comment to that ticket like "please add comment" and assign it to user. in post function i added comment on issue by jmwe and selected add comment only if below condition is true. in that i added condition like
{{ issue.fields.customfield_26597 == "No" }}

but its not adding comment. can you help?

1 answer

1 accepted

0 votes
Answer accepted
David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 22, 2024

Hi @CHINNAMUTHEVISAI.SATYANARAYANASHARMA 

If the custom field is a Checkboxes type custom field, then the condition should be:

{{ issue.fields.customfield_26597 | find({value:"No"}) }}

If it's a Radio buttons or single-select field, use:

{{ issue.fields.customfield_26597.value == "No" }}
CHINNAMUTHEVISAI.SATYANARAYANASHARMA
Contributor
May 22, 2024

Thanks. this is working as expected.

CHINNAMUTHEVISAI.SATYANARAYANASHARMA
Contributor
May 22, 2024

is it possible to assign issue to some one in above case from workflow?

David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 23, 2024

Sure, you can use the Assign Issue post function with the same conditional execution code

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events