Good day, guys!
Is there a way to extract the URL inside a link?
E.G.:
Let's say I have, on the issue Description, a text linked to a URL, as below.
It's displayed as "Google" but I need to get the "https://google.com/".
Is there a way to do that to use in Automation?
Thanks!
@Gustavo Moraes Hi buddy.
@Marc - Devoteam is probably right, but I'm too stubborn.
Can you try this?
{{issue.description.match("(\bhttp\b[^\s]*)")}}
It returns:
Can't get it escape the " ] " but that's your problem, not mine :P
Damn, that worked. Some kind of sorcery.
I'll add it to my list of "Jira Tricks"
The only other thing I had to do was split it because I had many URLs through the description.
{{issue.description.match("(\bhttps\b[^\s]*)").split(",").first}}
Thanks a lot for your help!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Looking at the smart value options that can be used in automation, I don't think this is possible.
Via the API, on retrieving the issue, this will be visible.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Good afternoon, @Marc - Devoteam
Somehow @Atlass Monster was able to get it.
Please check his reply.
Thanks for checking, sir!!
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.