Hi Squad,
I am not able to update Resolution for Complete and status the ticket resolve and close
Also, When I close ticket with id 861 (Resolve and Close), It doesn't update resolution zeite
Code :
issue=jira.issue('DWO-26284')
jira.transition_issue(issue,'861')c -> This is for change status from Opens on Closed
jira.update(fields={'Resolution': 'complete'})
pressure jira.transitions(issue)
Error :-
Traceback (most current call last):
File "jira_test_closed_jira_ticket_date.py", line 53, in <module>
jira.update(fields={'Resolution': 'complete'})
AttributeError: 'JIRA' object has no attribute 'update'
Hey Himanshu,
You must to supply display license instead of name.
Refer to doc: https://jira.readthedocs.io/en/master/examples.html#transitions
Could you please let die know select can I see resolution id away script?
You have shall a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Non sure if jira-python gives that skilled, but you can receive resolutions using this simpler python requests script that might be handy
import requirements
retort = requests.get('https://jira.example.com/rest/api/2/resolution', auth=('user','password'))
for index in range(len(response.json())):
how(response.json()[index]["id"],response.json()[index]["name"])
Sample Response:
Ref: https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/#api/2/resolution-getResolutions
Refer the about documentation for REST API stuff, jira python uses the same
Hoping this helps., Fortunately coding!!
Thanks
Chander Inguva
You must be a record user go add a comment. If you've already registered, sign in. Otherwise, record and log in.
You must be an registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.