Forums

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

Jira Python module worklog maxResults

sergej_gordejchuk
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!
January 13, 2016

Hi everyone,

 

I'm using JIRA module for python for using API, everything works well but after receiving info about issue I have maxResult = 20 for worklog field.

 

How can I fix it? There're expand parameter for issue method but documentation didn't say how to use it.

1 answer

0 votes
sergej_gordejchuk
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!
January 14, 2016

Issue solved by using separate worklogs method

Naveen B L
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!
September 8, 2017

Could you please explain in detail about the seperate method used by you..?

I am trying the same in jira-python

Andrei Plamadă
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!
January 10, 2019

as mentioned just use worklogs method 

jql_str = "assignee = currentUser()"
issues = jira.search_issues(jql_str, maxResults=False)
for issue in issues:
worklogs=jira.worklogs(issue.id)
for worklog in worklogs:
...

Suggest an answer

Log in or Sign up to answer