Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the last paragraph of the rich text field in Jira software

Rogerio
Contributor
October 20, 2022

How to get the last paragraph of the rich text field in Jira software cloud because a need the custom field the same comments field.

I need to custom field for the people put a comment line in many dates differents, but I need to extract the last line using the automation and put this information in a field to called last information, for example, I am searching how to do it, but I didn't find it. Anybody could be help me please?

 

Thank you so much

1 answer

1 accepted

1 vote
Answer accepted
Mark Segall
Community Champion
October 20, 2022

Hi @Rogerio - Assuming you're using automation, you could do something like this:

  • TRIGGER: Field Value Changed (the field you're trying to parse)
  • ACTION: Edit Issue (the field you're trying to update)
    I'm using the Description field in this example:
    • {{issue.description.match("(?si)^.*\n(.*)$")}}
Rogerio
Contributor
October 20, 2022

Hi @Mark Segall , I try to use this solution. 

 

Thank you a lot

 

Kind Regards,

 

Rogerio 

Like Mark Segall likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events