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 edited

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 edited

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
atlassian, rovo agent workshop, build a rovo agent, interactive workshop, Atlassian Intelligence, rovo agent building, automated triage, ai agents, cloud app development, atlassian learning, rovo studio, developer productivity, Rovo workshop

Let's build A Rovo Agent 🤖

Want to build your own Rovo Agent? Join this interactive workshop and dive into a powerful Rovo use case: improving resolution time with automated triage.

Save your spot
AUG Leaders

Atlassian Community Events