Forums

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

JIRA Server 7.4- REST API does not include worklog for some projects

Craig Gulliver August 24, 2018

I'm using the REST API to pull back a list of issues across projects and inspect the worklogs, i.e. /rest/api/2/search?jql=...&fields=worklog

I've discovered that some issues will not include worklog even though the time tracking is enabled and the issue has worklog entries. When using the GET issue endpoint i.e. /rest/api/2/issue/181669 is also missing the worklog property for some issues and it's working for others. However, if I use i.e. /rest/api/2/issue/181669/worklog it will return the worklog for all issues.

I've narrowed it down to a specific project and I've checked all of the obvious things. I've even gone so far as to compare the project configuration with other projects that work as expected. I feel it should be configuration related but I can't find the problem.

Has anyone seen this problem before and know the solution to reveal the worklog property for any project?

2 answers

1 accepted

1 vote
Answer accepted
Craig Gulliver June 13, 2019

The Answer is in the Field Configuration for our project. Not all of the issues were configured correctly.

Check all of the field configurations for your project and make sure that Log Work is not hidden!

After changing this, it worked like a charm!

0 votes
Arun_Thundyill_Saseendran
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.
August 28, 2018

Can you please make sure that your Jira admin has enabled time tracking, and the user that use to fire the ReST call has the Work on IssuesDelete Work Logs, and Edit Work Logs project permissions?

Craig Gulliver August 28, 2018

I am the Jira Admin, and all the permissions are correct. The Time tracking is enabled otherwise it wouldn't work for other projects. Also, I was able to log work on the ticket and see it using endpoint like  i.e. /rest/api/2/issue/181669/worklog.

The problem is that it should also show up when I run /rest/api/2/search?jql=...&fields=worklog, which works for all projects except one.

Why would it not work for just one project?

Arun_Thundyill_Saseendran
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.
August 30, 2018

Ok. Tricky situation. I will try to dig deep.

Craig Gulliver August 31, 2018

Any further information you can provide would be greatly appreciated. 

darylhandley
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!
November 20, 2018

We are also having this issue. 

darylhandley
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!
November 20, 2018

If it helps at all this is one of our oldest projects so perhaps that is causing the issue. 

Erik Erik June 11, 2019

Same issue for us, on the same project, some issues can be retrieved correctly with their worklogs others no

Erik Erik June 11, 2019

No solution ?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events