You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
I have an automation rule that triggers when a comment is added to an issue. The new comment is searched using a regex, looking for something like "[tw] 5m" at the beginning of a line. So far so good:
I then want to do something in a rule action with the "5m" captured in my regex. Within the regex, I would simply use "\1" to refer to the contents of the capture group, but I have no idea if I can recall the contents of the capture group in a subsequent action, and, if I can, how I would recall the contents so that I can use them. It seems like some smart value or other is what I need, but I can't find any smart values that reference the results of a regex match.
Or should I forget about capturing in the conditional step, and instead use something like `{{comment.body.match("^\[tw\]\s*(\d+[wdhm])")}}` for setting the value of a field in an action step? Also, when using the .match method, where do the regex options (e.g. "gim" in the screenshot regex above) go?
Thank you.
Being relatively new to Jira -- but coming from an engineering and development background -- a variable sounds like exactly what I need, but I don't know where to begin with creating one. Can you please refer me to relevant documentation?
Thank you,
-Brian
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.
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...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.