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?
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!
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 Issues, Delete Work Logs, and Edit Work Logs project permissions?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok. Tricky situation. I will try to dig deep.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any further information you can provide would be greatly appreciated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We are also having this issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If it helps at all this is one of our oldest projects so perhaps that is causing the issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.