JiraSoapService - How am I able to alter the issue priority?

Tylr Wu August 4, 2012

Here's the code (Python / SOAPpy) I writed to pinpoint the issue priority that I wanna alter:

filterResult = soap.getIssuesFromFilter(auth, "10000")
filterResult[1]["priority"]

What I want to do next is to set its priority from 'severity 3' to 'severity 2'
I tried:
filterResult[1]["priority"].setPriority("severity 2")
But I got:
AttributeError: 'str' object has no attribute 'setPriority'
Thanks anyone that could help me out here

1 answer

0 votes
Jobin Kuruvilla [Adaptavist]
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 Leaders.
August 4, 2012

Shouldn't you be setting the priority on filterResult[1] itself?

Tylr Wu August 4, 2012

Hello, Jobin

filterResult[1] is the structType instance, no attribute 'setPriority'

Jobin Kuruvilla [Adaptavist]
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 Leaders.
August 4, 2012

Sorry, I don't know Python. I thought it was MutableIssue! getIssuesFromFilter returns an array of MutableIssue.

Suggest an answer

Log in or Sign up to answer