Automation to send email 1 year after a label is applied

Luke Gartland
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 16, 2022

Hey folks, have most of an automation figured out but can't figure out this last part and I'm hoping to get help.
I'm trying to make an automation that triggers when a specific label is added to an issue. This automation would wait one year and then send an email (basically asking us to revisit this issue in a year). 

I've read that you can use smart values such as {{now.plusYears(1)}} to do this but I can't figure out where I'm meant to put this, and which element I should apply it to. 
I've included an arrow to where I think this step would go, any help would be amazing!Automation_-_JIRA.png

2 answers

1 vote
Mark Segall
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 16, 2022

Hi @Luke Gartland - I don't think a label would be the right approach to this.  You would need something like "label added after n" which isn't an available option for queries.  I would recommend instead leveraging a custom date field and then executing a schedule trigger that runs daily querying for issues where your custom date field is greater than 1 year.

0 votes
JD
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 21, 2022

Hi @Luke Gartland 

We currently don't support the ability to delay a rule execution. We have an open feature request for this: https://codebarrel.atlassian.net/browse/AUT-330

Even with the above feature I'm not sure if we could add a delay for up to a year. Are there any alternative ways to run this rule?

For example could you use a schedule trigger and a lookup issues action? The JQL in the lookup action could be "updated <= -52w AND labels = Something". This would find all the issues with the label that haven't been updated in 1 year (any issues  with any updated in less than a year would be excluded).

Hope that helps.

Thanks,

John

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events