Jira Smart Values - Text fields
Hoping someone may be able to help with this. I have been racking my brain with Atlassian's "rules" for how it was decided that replaceAll would be implemented.
Most of this seems to have been thrown right out the window.
Unfortunately, this didn't help me either.
Example follows
Issue Description:
Item
Notitem
Not an item
itemitem
item
item
item
Intention: Remove all instances of "item" on a line by itself. The normal regular expression that would match what I want to remove is simply: ^item$
Failed attempts:
{{issue.description.replaceAll("(\nitem\b)","")}}
{{issue.description.replaceAll("(^item$)","")}}
{{issue.description.replaceAll("(\nitem$)","")}}
{{issue.description.replaceAll("(^item)","")}}
The valid string to accomplish my goal was:
{{issue.description.replaceAll("(?m)^item$\n?", "")}}
Thank you me
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.