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

edit action to have issue field = regexp of summary field?

Hello,

Is there a way to have an edit action to have an issue field = the regex results returned from the summary line of that issue?  I already have the regex figured out, but I don't see an option that would work.  I see "Set value" and "Copy from..." but the set value operator looks like it sets a static value.   

Example of what i want: 

When: issue is created

Then: Edit issue fields

Serial number = regexp(?<=Serial: ).*?(\w+)) of field summary

 The summary line of the created issue would look like the following which is automatically emailed into our jira service desk:

Alert - Missing Syslog - Serial: 2874d7

 

Thank you. 

1 answer

1 accepted

0 votes
Answer accepted
Simeon Ross Atlassian Team Feb 04, 2020

Hi David,

It is indeed possible. You'll just need to use smart values here to achieve this. Your action should look something like this:

regex.pngIn my case, Field A is another field on the issue. I'm then using a smart value to perform the regex and set it to the result. You want to use the match function. There is more on smart values in our docs, https://docs.automationforjira.com/reference/smart-values.html#issue.

Cheers,

Simeon.

that worked! Thank you! 

Suggest an answer

Log in or Sign up to answer
TAGS

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