Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Update the worklog author from the REST API

Alexander Eck [Tempo]
Rising Star
Rising Star
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 Champions.
March 2, 2020

Hi dear all,

I am trying to update the worklog author of a worklog through the REST API on Jira Cloud. I am using this endpoint documented here. Means I call the endpoint: 
https://myatlassianurl.atlassian.net//rest/api/3/issue/10027/worklog/10016

I tried to send the payload as:

{ "author": {"accountId": "myAtlassianAccountID"}

without any success. I get a positive response and i see myself as the "updatedauthor" but the passed "worklogauthor" gets ignored. I tried also the "properties" section with:

{
"properties":
[{"author":
{"key":"accountId",
"value": "myAtlassianAccountID"}
}]
}

but this throws an error:

{    "errorMessages": [        "N/A (through reference chain: com.atlassian.jira.issue.fields.rest.json.beans.WorklogJsonBean[\"properties\"])"    ]}

Any hint is much appreciated.

 

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
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 Champions.
November 22, 2016

You've already had that answered at https://answers.atlassian.com/questions/44224849

 

Suggest an answer

Log in or Sign up to answer