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

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events