I have a bunch of tickets with Weblinks in the Weblink Field and I need to copy these links to either a Comment and/or the Label field of the tickets where they appear in order to make them text searchable via JQL.
I have access to Scriptrunner which I see can copy from custom fields to other fields, but I can't see a way for it to copy from the Weblink field to Comments or Labels since these are not custom.
Also, the Weblinks in question are to tickets in another JIRA instance, so if putting these in Labels, it would be ideal if we could truncate the URL to just the ticket Key (e.g. truncate from https://mycompany.atlassian.net/browse/FAKE-5114 to just FAKE-5114 in the Labels field).
The ultimate goal is to make the Weblink searchable, so I am also open to other suggestions.
Thank you in advance for any assistance.