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: 

Advanced Compare # of Issues in List

Corey Waldner
December 11, 2023

Hello! Working through an email update that gives a general rundown of items for our dept. I created a {{lookupIssues}} smart value then Create lookup table with an assigned smart value. I do this for 3 different lookup tables, and I am able to reference each table in the email that is sent out. 

 

My emails formatting is as follows:

Deadline Missed Items:
{{#MissedList.get("MissedSLRP")}}
<a href="{{url}}" style="color: red;">{{summary}}</a>
{{/}}

Risk of Missing Deadline:
{{#RiskList.get("RiskSLRP")}}
<a href="{{url}}" style="color: orange;">{{summary}}</a>
{{/}}

On-Time Items:
{{#lookupIssues}}
<a href="{{url}}" style="color: green;">{{summary}} </a>
{{/}}

Completed Items in the last 7 days:
{{#DoneList.get("DoneSLRP")}}
<a href="{{url}}">{{summary}}</a> completed on {{Due Date.mediumDate}}
{{/}}

--------------------

Not all of our issues will have a missed deadline or risk of missing deadlines so I want to adjust the emails by using an if:else statement

MissedList > 0 then uses an email format

RiskList > 0 then use a different email format 

etc..

 

I am unable to pass the if statement by all combinations of advanced compare. Anyone have experience doing something similar or have a different approach I should take? 

Thank you for your support. 

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Corey Waldner
December 12, 2023

I was able to complete this by using {{#MissedList.get("MissedSLRP")}} greater/ess than 1.

 

Does not work with the equals function

0 votes
Trudy P Claspill
Community Champion
December 11, 2023

Hello @Corey Waldner 

While your question is posted in the "Confluence Questions" forum, it appears to be about Automation Rules for Jira? Is that accurate? If so, I can move your question to the Jira Questions forum where it will be seen by the correct audience.

Corey Waldner
December 12, 2023

Thank you @Trudy P Claspill! I am a noob. This is my first time post, sorry.

 

I was able to work through the issue and get it working. If you can move it that would be awesome and I will post the solution for others.  

Trudy P Claspill
Community Champion
December 12, 2023

The post has been moved.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events