Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Automation To Remove String From Description

Hello Community,

On my service desk project there's a 3rd party integration that appends text to the description field that I'd like to remove as it causes unnecessary noise and confusion. The process is a ticket is created where reporter fills in their own description and the text is added after creation so the reporter is unaware. Upon create, I'd like automation to remove that added text and maintain only what the reporter wrote.

For this example I'd like to remove the word "Please remove this text" when summary includes Test.

I've made several attempts, trying both "fields" and "update" with the format differing slightly for update. My understanding though, is if using "fields" - it behaves as a set and will entirely override the field.

"fields": and "update":

My latest attempt; realizing format is off for a few likely reasons. I was under the impression I could utilize the smart values to remove or replace text, but maintain the description otherwise.

{
"update": {
"description": [
{
"set": "{{issue.description.remove.asJsonString("Please remove this text")}}"
}
]
}
}

Hoping someone could help me identify the correct way to do this. Also, would I need to select the field "description" or can I go right to 'advanced' section? 

 

 

Screenshot 2020-09-25 171358.png

 

Thanks.

2 answers

1 accepted

1 vote
Answer accepted
Hana Kučerová Community Leader Sep 27, 2020

Hi,

please try something like this. I've just tested it and it works for me.

 

rule.png

That was a simple fix, thanks.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira Service Management

Why upgrade to Jira Service Management Premium?

We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan.  &nb...

227 views 1 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you