When I'm trying to use this {{issue.description.match("(Customer Account\:.{0,15})")}} smart value in Jira automation.
The field result is like this Customer Account: "Customer Account: XYZ "
Is it possible to update only the name XYZ in the Customer Account field?
Hi @Zubair Khan
I haven't tried this myself, but you could try to do use a smart value with the replace function like this:
{{issue.description.replace({{issue.description.match("(Customer Account\:.{0,15})")}}, "Customer Account: NEWVALUE")}}
Does that work for you?
Alternatively, you could also store the value of Customer Account into a custom field. That's the way I'd prefer (without knowing your exact use case) in order to use it for filtering in other views.
Cheers,
Matthias.
Thanks for the response.
My use case is, I need to copy a line from description field to a custom field "customer account"
When I use this smart value it's not working.
{{issue.description.replace({{issue.description.match("(Customer Account\:.{0,15})")}}
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I see. Then I made it more complex than it was intended. You could simply use this statement then:
{{issue.description.match("Customer Account\:(.{0,15})")}}
Note that I have moved the rounded brackets to the actual part which you want to extract.
Cheers,
Matthias.
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.
@Matthias Gaiser _K15t_ Is it possible to use the same match smart value to create user stories with the match being each user story summary? Here is screenshots to show what I am trying to accomplish and the error message I get. My goal is to be able to automate user story creation based on each Action Item recorded as a line item in an Epic's Description at the time of the Epic creation. Thanks for the assist in advance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Barry Ozer - that should work.
I think you might have a problem with your regex and the colons, you could try this regex instead:
AI1: (.{5,35})
I often use a webpage like regex101.com in order to check the regular expressions I write.
PS: I'd generally recommend creating a new question - that way also other people will more likely jump in and help you. You could still tag me over there :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you. I'll be sure to pose a question instead of an answer next time. That worked like a charm @Matthias Gaiser _K15t_ .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.