resolve ticket as fixed with python jira api -


import jira  def resolve_issue(jira,issue):     jira.transition_issue(issue, '5', assignee={'name': 'pm_user'}, resolution={'id': '3'},comment={'name':"resolved ticket."}))  [(u'5', u'resolve issue'), (u'821', u'request info'), (u'1011', u'rejected'), (u'1031', u' duplicate ')]  

are available transitions. not work resolve issue fixed python jira rest api. have tried list out transitions, don't see 'fixed' resolution id. suggestions?

added error below

text: can not deserialize instance of java.lang.string out of start_object token 

at [source: n/a; line: -1, column: -1] (through reference chain: com.atlassian.jira.issue.fields.rest.json.beans.commentjsonbean["body"])

i'm not sure if causing problem have wrap 'assignee' , 'resolution' changes in "fields" dict. have like:

fields = {     "resolution:: {         "id": "3"     },     "assignee: {         "name": "pm_user"     } } jira.transition_issue(issue, fields=fields, comment="resolved ticket.") 

the jira rest api doesn't have error handling transitions , i've seen number of different errors (usually 500) when request malformed.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -