Hi,
I want to set issue priority in JIRA Ticket using groovy. We have a drop down list in JIRA ticket which is populated with a default priority once an issue is created. e.g "Priority 6".
With the help of groovvy I want to set the priority as "Priority 4".
I am able to get the issue priority using the following code, but not able to set a new priority:
def priority=issue.priorityObject.name;
for setting:
issue.setPriority(new priority);
giving below error:
No signature of method: com.atlassian.jira.issue.IssueImpl.setPriority() is applicable fo
r argument types: (java.lang.String) values: [ Priority 4]
Possible solutions: setPriority(org.ofbiz.core.entity.GenericValue), getPriority(), setPriorityId(java.lang.String)
at Script480.run(Script480.groovy:66)
Pls suggest