Forums

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

Api request without deleted worklogs

arkadiusz March 15, 2018

Hello!

Simple request to Jira REST Api (rest/api/2/issue/{issueKey}) returns all the worklogs including removed by the user

Inside json from REST Api there is no sign of being removed, just:
"self":
"author":
"updateAuthor":
"created": 
"updated": 
"started": 
"timeSpent":
"timeSpentSeconds":
"id":
"issueId":

Is there any way to get only "valid" worklogs? Or maybe there is some way to filter response json and separate deleted onces?

2 answers

0 votes
Sreenivasaraju P
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 Leaders.
February 12, 2019

Hi,

You can use /rest/api/2/issue/{issueIdOrKey}/worklog API . It will give the valid worklogs only.

0 votes
Aurora Chobadindeguy
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 21, 2018

Hi arkadiusz

I have the same problem. Did you find an workarround to this issue?

Thanks !

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events