Based On Priority field updated the description field

Ravina
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.
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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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
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.
June 15, 2022

Hi Piotr Zadrożny _Eyzee_

Thanks, I am able to  change the description.

1 vote
Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 14, 2022

Hi @Ravina 

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

Alex

Ravina
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.
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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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