- edited description
- changed title to Parse and Copy URL from Description field to a custom field
Parse and Copy URL from Description field to a custom field
Hi Fidel,
I want to parse and copy an URL of "Alert Location: " value from Description field to a new Custom field "Alert Location". I tried delimiters but at the end of the URL, in the custom field, I am getting spaces and --------.
Here is the image with URL that needs to be copied and what I have achieved.
Can you please help me getting the correct post-function or delimiters?
Screenshot of my post-function:
Nikhil
Comments (18)
-
reporter -
repo owner Please, try the following trailing delimiter:
\s
-
reporter Nope, still same output in the Alert Location custom field (Text Field (single line)). Post-function:
The URL is closed in [ ] braces with dashes (----) and empty space within the field.
Nikhil
-
repo owner Please, attach the text of the Description field you should in the screenshot, so that I can reproduce the problem.
Meanwhile, try selecting url as value to be extracted, like shown in the following screenshot:
-
reporter Selecting URL doesn't even copy and paste the content i.e., the custom field doesn't even show up in the View issue screen. Attaching the content to reproduce.
Nikhil
-
reporter - attached Text to Parse.txt
-
reporter @fcarmario ,
Kindly let me know if you find any workarounds.
Nikhil
-
reporter @fcarmario ,
Now I can see that the Alert Location URL in text mode and is closed within braces [ ] and this is the reason we were getting those braces after getting copied to the custom field.
Can we change the renderer to WIki Style as this style doesn't show braces?
Nikhil
-
repo owner Hi @nikhil_dsv,
Try using the following delimiters:
- Leading delimiter (regular expression):
Alert Location:\s*\[
- Trailing delimiter (regular expression):
\]
- Leading delimiter (regular expression):
-
reporter @fcarmario,
Nope, it did not work. The Alert Location custom field didn't show up at all in the view issue screen. Here is the screenshot of the post-function.
-
repo owner Can you, please, attach the content of the Description from the Text view?
-
reporter - attached Text to Parse.txt
Attached the content from edit issue screen. P.S.: There is no text view for the Description box so copied the full content.
-
repo owner Hi @nikhil_dsv,
Try using the following delimiters:
- Format of the value to be extracted (regular expression):
.*?
- Leading delimiter (regular expression):
Alert Location.*?\[
- Trailing delimiter (regular expression):
\]
- Format of the value to be extracted (regular expression):
-
repo owner Try using:
- Format of the value to be extracted (regular expression):
.*?
- Leading delimiter (regular expression):
Alert Location:\s*
- Trailing delimiter (regular expression):
\s
Please, close the issue if this configuration solves the problem.
- Format of the value to be extracted (regular expression):
-
reporter Thank you Fidel, sure I will close once confirmed it is working as expected.
-
reporter This is working as expected. Thanks for your support. But one important thing, can this be applied for all the old Jira tickets created before we implemented this? There are lot of such implementations we did like parse and copy a text to a new custom field which needs to be applied for older tickets as well? Is this possible?
-
repo owner Hi @nikhil_dsv,
Let me know if my answer to issue
#967is also valid for this issue. -
repo owner - changed status to resolved
I close this issue. Please, reopen it if you need to.
- Log in to comment