Hi
We have tickets where in description have user e-mail like mari@kalle.ee. I read that i can't directly set e-mail to Reporter system field and so i created Reporter e-mail custom field (text field type).
now automation take out e-mail from description field how it should but format on custom field is not correct.
Field value: {{issue.description.substringBetween("E-post:","\n")}}
Right now format is not ok for me. What i should change?
Hi Urmo,
You might try using a variable instead. For example, I do something similar, but I am editing the Reporter field, not a custom field.
Fortunately for me it is more clear cut since the email is surrounded by **.
So I create a variable = FromSender using {{issue.description.substringBetween("**","**")}}
and then in the field I want to set, just apply the variable {{FromSender}} and all is well.
It seems to me like your syntax is not terminating at the correct end position.
Hi
Seems to be that there is some not the best solution but here is how i did do it now:
First take out e-mail address from description:
{{issue.description.match(".*E-post: (\S+).*")}}
After that i did issue edit again because right now i dont have any good idea how i can clean custom field from not needed values. it show with this data right now:
There is [ mark, then e-mail and after that |mailto: ] what is not needed form me. So i did edit issue again:
And now after this grazynes it is beautiful for me:
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.