If priority value is high then update the description value .
Hi @Ravina
You can create Scriptrunner Listener:
Condition:
issue.priority.name == "High"
Code:
def resp = put("/rest/api/2/issue/${issue.key}")
.header('Content-Type', 'application/json')
.body([
fields: [
description : 'Description for issues with high priority'
]
])
.asString()
assert resp.status == 204
Thanks, I am able to change the description.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ravina
You can accomplish that either by using Jira Automation, or by workflow automation on the create transition.
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Alex Koxaras
I want to done this by using script runner . but I am not getting correct result .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Post your script please and the results you are getting
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.