The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Adding If/Else to Notification Email Subject Line

Refinement Services Support
May 23, 2023

In Jira project automations how can I add a logical statement to an email subject?

For example, add "URGENT" to the subject line if {{issue.priority.name}} = "High"

 

Is this possible?

 

Thanks

 

Neil

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Mikael Sandberg
Community Champion
May 23, 2023

Yes, that is possible, all you would have to do is create a global variable for the summary field and then use the if/else to define the summary. You can then use that smart value in the send email component, something like this:

Screenshot 2023-05-23 at 1.55.22 PM.png

Refinement Services Support
May 30, 2023

Thanks Mikael!

Like Mikael Sandberg likes this
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events