Forums

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

Transition an Issue Using jira-python.

David Anderson
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!
July 9, 2016

I am simply trying to change an issue's status and resolution to resolved.

Per the docs.

My transition IDs

>>> issue = jira.issue('TES-2')
>>> transitions = jira.transitions(issue)
>>> [(t['id'], t['name']) for t in transitions
... ]
[(u'11', u'To Do'), (u'21', u'In Progress'), (u'31', u'Done')]

My Code:

#try 1
jira.transition_issue(issue, '31', resolution={'id': '10000'})
#try 2
jira.transition_issue(issue, '31', resolution={'name': 'Done'})

This yields a 500 error with no message.

 

Per this thread and this other one, I tried:

jira.transition_issue(issue, transitionId='31')

 

This throws an error stating transition issue requires 3 arguments and 2 are given.

I then tried

jira.transition_issue(issue, transitionId='31', assignee={'name': 'admin'})

I get the same error despite having three arguments.

I'm running jira-python 1.3.

I have also downloaded from source and tried 1.7.

My account is an admin.

Any help is greatly appreciated!

2 answers

1 accepted

0 votes
Answer accepted
Felipe Kraemer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 4, 2013

Hi Andrew,

Yes, it should be possible to log time from within Crucible into a JIRA issue:

https://confluence.atlassian.com/display/CRUCIBLE/Using+Time+Tracking#UsingTimeTracking-JIRAintegration

Please make sure that the option "Allow Time Tracking submission from reviews" is marked, by going to Crucible Administration > Global Settings > Application Links > JIRA settings.

Please let us know how it goes.

rstephens
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 Champions.
March 5, 2013

Hi Andrew,

The option to enable/disable time tracking at the Crucible level was removed as part of Crucible 2.9. Now Crucible tickets if time can be submitted to JIRA and if so, enables the feature automatically.

If you are not seeing the option to submit time then please check

1. That time tracking is enabled in JIRA

2. The application link is configured as trusted apps or OAuth and the user whoi is trying to log time is authenticated

3. You have a JIRA issue linked to the review.

4. The user has permission to log time in JIRA on that project.

0 votes
Deleted user
March 4, 2013

Thanks for taking the time to answer but we have no "Allow Time Tracking submission from reviews" option in the Crucible Administration > Global Settings > Application Links > JIRA settings. area.

I Guess I will stop my search for an answer on this as all online resources are drawing a blank.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events