Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Hi,
I need help in copying a certain text from summary of an issue to a custom field in JIRA Cloud.
For Eg:
Summary : "Report of Oct 2020 :: Company ABC"
I wanted to store "Company ABC" in a certain custom field.
I am using : "Email this issue" plugin and Automation plugin.
Hi @harsh.bhardwaj ,
you can achieve this with Automation for Jira using Smart Values :
Have a look at the screenshot of my rule, I just tested it and it works fine :
Let me know if this helps,
--Alexis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, @Alexis Robert
I hope you're well! This is incredibly helpful! Is there a way for me to select a segment of the summary to parse into a custom field, as opposed to including the entire summary?
Looking to for something like this:
Account Lockout: UserID: aedana, UPN dan.anas@techmd.solutions
I need to extract the trailing text after UPN, to be parsed into customfield User Principal Name.
Your advice is immensely appreciated!
Dan A.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
{{issue.summary.replaceAll(".*UPN ","")}}
The solution is showing you how to include all characters after the string. The star at the front means it doesn't matter what's in front, it just cares about what's after the start (for you, UPN)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
What would the format be if I wanted to pull out a string that's inside other text?
Say I had the following text:
"The user's email is: user@example.com and this relates to ticket ABC-123."
I want to pull out the "user@example.com" and feed that string into a dedicated "email" field on the ticket.
So far I have: {{issue.description.replaceAll(".*is: ","")}}
--
UPDATE: This has been figured out. We were able to successfully use the following to pull an email address out of the "description" field of a ticket to populate a dedicated "email" field:
{{issue.description.match("([a-zA-Z0-9+._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+)")}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
How can i copy all text from trigger issue's summary then add few words at the front/back of the summary in a custom field?
example like this:
summary = Hello world
additional text = Test
value in custom field = Test Hello world or Hello world Test
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.