The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

getWorklogs always returns empty array

Manan
June 17, 2024

Attempting to get the work log of an issues using getWorklogs() but it always return empty array even thou the issues have worklog.  Dumping the toString for issues display the below:

worklogs=[],

is there a special way to get the workLog for a given task.

Issue issueFromJira;

...

Iterable worklogs = issueFromJira.getWorklogs();

System.out.println("getWorklogs Size : " + Iterables.size(worklogs));

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Florian Bonniec
Community Champion
July 10, 2024

Hi @Manan 

 

You may have to use Worklogmanager.

WorklogManager (Atlassian JIRA 7.1.0 API)

 

Regards

DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events