Found out, when using the "validate" function in an automation rule, you can't use a smart value for your Authentication. With this, the validation works.
Now, I am focusing on identifying a certain worklog, which in my case is the last one created / updated as the trigger for my autom. rule.
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Thanks for your ideas extending this for Tempo worklogs. Does that URL parameter for startedBefore encode to a UNIX Timestamp (i.e., milliseconds after 1 Jan 1970)?
And so to use the startedAfter or startedBefore parameters for a different field than {{now}}, the math difference must be performed relative to the UNIX Epoch. To accomplish this, you may save the time value for the UNIX Epoch in a variable and then perform the difference.
Atlassian Team members are employees working across the company in a wide variety of roles.
March 25, 2024 edited
@Bill Sheboy Thanks for the suggestion! I think that's another great example to base the timestamp off the issue's created date and the more options people have to work with, the better chances it has of serving all the various use cases.
Though my inspiration came from the Tempo worklog article, this timestamp was applied to Jira worklogs and the full API I used was:
{#now} with a formatting of "toMillis" should give a timestamp in milliseconds relative to UNIX Epoch. minusMonths(1) and .endOfMonth are other auxillary functions to align to a specific window. Hope this can help anyone looking to enhance automation to delete Jira worklogs.
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
I tried that for a date / time field and it produced the same result as you see for {{now}}, so the variable and diff do not appear to be needed (unless the date calculation scenario is more complicated). Do you have a link to the Tempo worklog article as I did not see that example on the REST API doc page for Tempo?
I wish features like this were better documented for rule handling :^)
@Alex Ziegltrum I have to delete the worklog after cloning the Epic issues using automation rules in jira
I Applied this Automation Rule ,In place of webhook url i used https://your-domain.atlassian.net/rest/api/3/issue/projectkey/worklogid. in Header i provided useremail:personal token .but its not working and i'm facing below error when i gone through the logs ,may i know the reason please . Thanks in advance
Why header is not allowing Delete option ,If any one have idea on this issue please let me know please .thanks in advance
36 comments