You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi,
I try to automate a simple task and automatically log some minutes to this task. Unfortunatly it logts the time to the user that triggers the task, not the assigned one.
I tried with this simple JQL statement
{
"update": {
"worklog" : [
{
"add": {
"timeSpent" : "{{issue.labels.get(6).split("_").last}}",
"comment" : "{{assignee}}",
"author" : { "name" : "{{assignee}}"},
"started": "{{now.minusDays(now.dayOfWeek()).plusDays(1)}}"
}
}
]
}
}
Sorry - the board killed my formatting.
any ideas?
Thanks
mathias
Hi Mattias,
Thanks for your question. I'm afraid it isn't possible to achieve what you're trying to do. The Jira API doesn't allow you to set the author field and it is based on who the logged in user is.
For your reference, we do have a log work action now which would also be easier than the above method.
Cheers,
Simeon [Automation for Jira]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your answer simon. I found the log work function but it has its limitations.
But if I cant log work as a different user right now I have to skip that automation - would be pointless automatically log work on the user that runs or created the rule
Thank you.
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.