Forums

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

How do I create a rule to delete a certain number of characters in the summary field.

Jamie Edmondson
Contributor
October 19, 2023

I have a number of issues being created in Jira by another system. When the issues are created, it has the name of the system followed by a number and then proceeds with the description. I want to be able to remove these first few characters and not the whole summary. 

For example:

RemoveMe #1234546 User is having trouble logging into the application.

In this example, I want to remove "RemoveME #123456". That's it. 

1 answer

2 votes
Mikael Sandberg
Community Champion
October 19, 2023

You can do this by using smart values, the ones for text fields can remove part of the string. If the prefix in your summary has a set number you could use right(int length) to get the text you want. If it is not a set number then one of the substring functions should work.

Jamie Edmondson
Contributor
October 20, 2023

Yes. it is the exact same number of characters from the beginning of each summary. What would the query look like?

Mikael Sandberg
Community Champion
October 20, 2023

So if we use your example above then the smart value would look like this:

{{issue.summary.right(17)}}

This should give you User is having trouble logging into the application.

Jamie Edmondson
Contributor
October 20, 2023

No, this removes everything except the 17 characters from the right.

Jamie Edmondson
Contributor
October 20, 2023

I want to remove the first 17 characters of the summary.

Mikael Sandberg
Community Champion
October 20, 2023

No, it returns the characters, from the specified amount of characters, from the right of the text string.

Example, if summary is Hello World! then {{issue.summary.right(6)}} -> World!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events