How to get better smart values in email automation

Michał Pacewski March 21, 2024

Hey,

I am trying to create automation to send me email while ticket time logged is near to estimation (work ratio 80%)

 

Basically, I managed, but when I try to work on the email content - most of the values does not work.

At this moment only {{issue.key}} and {{issue.url}} has worked for me. 

I would like to have:
Subject: {issue.key}} has reached {{work.ratio}} of original estimate {{original.estimate [h] }}

Content: 
{{issue.url}}
{{issue.key}} {{issue.summary}}
has reached {{work.ratio}} of original estimate {{original.estimate [h] }}
{{issue.asignee}}

Can you help how to make it work?

Currently, in the email I receive blank space

Screenshot_26.png

1 answer

1 accepted

4 votes
Answer accepted
Stephen Wright _Elabor8_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 21, 2024

Hi @Michał Pacewski 

You shouldn't need the "fields" inbetween these smart values.

---

WorkRatio:

  • The smart value is missing the on fields, but {{issue.workRatio}} should work

Summary:

  • {{issue.Summary}} should work

Issue URL / Key:

  • I'd combine these using a hyperlink - try this:
    • <a href="{{url}}">{{issue.key}}</a>

Original Estimate:

  • The smart value is {{issue.timeOriginalEstimate}} - but this returns the result in a default setting of seconds 
  • You need to convert this to hours - although it will be decimal based - eg. 2.5 hours
  • The smart value I tried was {{#=}}ROUND(({{issue.timeOriginalEstimate}} / 60 / 60),2){{/}}

---

Let us know how these go :)

Ste

Michał Pacewski March 21, 2024

Thanks!

Stephen Wright _Elabor8_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 21, 2024

You're welcome :)

If these worked, could you accept this answer? This indicates to others who find this question in future that this answer can help them too :)

Ste

Suggest an answer

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

Atlassian Community Events