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

Is there a way to parse comment bodies when creating a action

Matt Feld Apr 21, 2017

I am creating a rule that will create a new story whenever an individual comments on any story with a comment that has a certain format. Is there a way, when executing the story action, to parse the comment body, maybe using regular expressions, so I can allow the user to enter multiple parts of the story(like for example, the summary and description) in the comment?

2 answers

0 votes
Gab Bautista Apr 21, 2017

Can you elaborate more on what do you mean by "executing story action"? 

If you just need to parse the comment section of a JIRA issue, what I can suggest to you is to create a JIRA IssueUpdateListener so that whenever an issue is updated with a comment, you get the value of that comment and parse it based on a syntax you pre-define (e.g. it should be in the format like [Summary: This is the Summary, Description: this is the description].

0 votes
Andreas Knecht Community Leader Apr 25, 2017

Hi Matt,

So you can use the 'Compare condition' to perform regular expression matches on comment body using this smart-value:


We also include a number of string functions to do further matching (or to extract certain values from a string). See for more details.

So for example you could use a match like this:


If your comment body contains 'Hello _world_ today!' then this would simply render 'world'.



Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Marketplace Apps & Integrations

Join our webinar: “Asset Management: The Role of Context in ITSM” with Atlassian & Riada

  Hi Atlassian Community! This is Teresa from the Jira Service Desk team. On June 19th, I’ll be hosting a webinar “Asset Management: The Role of Context in ITSM” with Atlassian Partne...

177 views 2 3
Read article

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