Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Based On Priority field updated the description field

Ravina
Community Champion
June 14, 2022

If priority value is high then update the description value .

 

2 answers

1 accepted

1 vote
Answer accepted
Piotr Zadrożny _Eyzee_
Community Champion
June 14, 2022

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

chrome_soROVLnUet.png

Ravina
Community Champion
June 15, 2022

Hi Piotr Zadrożny _Eyzee_

Thanks, I am able to  change the description.

1 vote
Alex Koxaras -Relational-
Community Champion
June 14, 2022

Hi @Ravina 

You can accomplish that either by using Jira Automation, or by workflow automation on the create transition. 

Alex

Ravina
Community Champion
June 14, 2022

Hi, Alex Koxaras

I want to done this by using script runner . but I am not getting correct result .

Alex Koxaras -Relational-
Community Champion
June 14, 2022

Post your script please and the results you are getting

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events