Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation Extraction Issues

JayJuan Jones
Contributor
April 14, 2022

Hello,

I have some issues with my new automation that I am setting up to extract the values of my fields from the description of my issues that are raised via email. I have some automation in place to extract the issue.desccription of any particular issue in order to get it to show the way that the text is formatted, as you can see below:

formatted description.png

the fields that I am currently trying to extract are myColorado Username, OS Version, and Phone Model.

The automation that I have set up does not seem to be pulling these in for whatever reason and one of the errors that I get even mentions fields with the same name. Any idea what could be going wrong here?

automation for fields.png

automation issues.png

2 answers

1 vote
Kiel Frost
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 15, 2022

Hi @JayJuan Jones 

I was able to confirm that I can update a field based on a similar condition using the match function on {{issue.description}}

Example:

I extracted the "username123" from the description and updated the "My Test Customfield" field.

Screen Shot 2022-04-16 at 3.58.28 pm.png

Below is the regex I used to extract the username from the description field.

Screen Shot 2022-04-16 at 4.09.23 pm.png

 

I have two suggestions for you to try

1. To help debug use "Log Action" to debug your rule - Learn about Debugging your rules \

2. Make sure your Regex is returning the right value by utilising a tool such as an online regex tool 

Hope this helps.

JayJuan Jones
Contributor
April 18, 2022

I tried that and still no luck! I see that it said successful, but it is not updating the field I expected. Does this look correct:

 

logic.png

output.png

1 vote
Yanty Ghani [ServiceRocket]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 15, 2022

Hi @JayJuan Jones ,

Perhaps you can try using this:

{{issue.description.substringBetween("myColorado Username|","||OS Version")}}

 Hope that works.

JayJuan Jones
Contributor
April 15, 2022

still no luck, it's saying its successful just like mines was, but it's not updating the field, even though it's saying it edited the issue

Yanty Ghani [ServiceRocket]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 15, 2022

I think it's because in your "Description", there's a space between the parallel bars. So the text should be this:

{{issue.description.substringBetween("myColorado Username|","| |OS Version")}}

 

JayJuan Jones
Contributor
April 18, 2022

so, in the line above are you trying to pull the myColorado Username or the OS Version? I only want to pull one value at a time.

After making that update, I am still getting the same outcome. A success, but no values have actually been updated. 

Here is the output again just in case it might help:

 

output.png

Yanty Ghani [ServiceRocket]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 18, 2022

It's hard to get the actual text in your "Description" field, but I tried this in my issue and I managed to extract the info:

Screenshot 2022-04-19 111250.png

And here's the automation I used:

Screenshot 2022-04-19 111338.png

That "substringBetween" means that it will get the text in between those strings.

Also, please make sure that your custom fields, "myColorado Username" and the others are "Text" field type.

JayJuan Jones
Contributor
April 19, 2022

still no luck! all my fields are text fields and I have updated the automation to match exactly what you have. Any ideas what I am doing wrong here or why its not working? Any typos you notice:

Edit Issues.png

Yanty Ghani [ServiceRocket]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 19, 2022

Why are you using "\OS Version" instead of "| |OS Version"?

JayJuan Jones
Contributor
April 19, 2022

oops, updated it and still no luck! this is so frustrating and weird. It's saying success, but not actually updating!

snip2.pngSnip1.png

Yanty Ghani [ServiceRocket]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 19, 2022

Under that "Add value to the audit log", can you change it from {{issue.description}} to {{issue.description.substringBetween("myColorado Username|","| |OS Version")}}

Then you can check the audit log to see what's the value for that substringBetween.

JayJuan Jones
Contributor
April 19, 2022

great idea! it's returning a blank value

Yanty Ghani [ServiceRocket]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 19, 2022

Ok, so now you can just experiment with it, until you get the value you need.

JayJuan Jones
Contributor
May 5, 2022

that didn't help, I still have not been able to return anything. 

JayJuan Jones
Contributor
May 5, 2022

why is it working for you, but not for me?

Yanty Ghani [ServiceRocket]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 9, 2022

The best thing for you to do is log a ticket with Atlassian Support, https://support.atlassian.com. They would be able to log to your Jira Cloud and see what the real issue is.

JayJuan Jones
Contributor
May 9, 2022

thanks, I just did!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events