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

1 accepted

1 vote
Answer accepted
Elifcan Cakmak
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 Champions.
October 24, 2018

Hello,

You can use userManager to get application user like this:

def userManager = ComponentAccessor.getUserManager()

def user = userManager.getUserByName("username")

Check out the documentation of usermanager here:

https://docs.atlassian.com/software/jira/docs/api/7.0.7/com/atlassian/jira/user/util/UserManager.html

Regards,

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events