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!
Hi Andrew,
Yes, it should be possible to log time from within Crucible into a JIRA issue:
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.