Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,458,747
Community Members
 
Community Events
176
Community Groups

Update Worklog as different user

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

 

2 answers

1 accepted

0 votes
Answer accepted

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]

Wow, that's not cool.  Can't do it in JSON either?

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.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events