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!
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.