Forums

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

How to link issue when mentioned in the description field

Marcus_palm September 27, 2023

Hi!

 

I'm trying to use Jira Automate to link any issue that is mentioned in the description field. 

I already have a working solution for issues that are mentioned in the comments section. This is a template and it looks like this. 

Comments.PNG

 

I tried to modify this into a new rule, for the description field. But for some reason it doesn't work. It looks like this: 

Description.PNG

 

Obviously I have made a mistake somewhere, but I can't figure out what. I tried with a lover case for "description.body" and "description.body.match" but that did nothing. Is the default description field called something else? 

Sorry if this is a trivial issue. I'm not code with any type of code. 

Any help would be appreciated! 

1 answer

1 accepted

5 votes
Answer accepted
Trudy Claspill
Community Champion
September 27, 2023

Hello @Marcus_palm 

Welcome to the Atlassian community.

Instead of using {{Description.body}} use {{issue.Description}}

Comments are a special type of entity that have multiple attributes such as "body" and "author". The Description field doesn't have such extra attributes.

Also, within a rule when you want to access the data in an issue field you start the smart value by referencing the issue - {{issue.

...and then follow that with the name of the field - Description}}

Marcus_palm September 27, 2023

Hi Trudy,

Well, that was about as easy of a fix as I thought. Worked great! 
Thanks for your quick reply! 

 

Best regards

Marcus 

Like Trudy Claspill likes this
Wael Bsaibes March 22, 2024

Hello @Marcus_palm I am trying to perform almost the same automation as you. If an issue is mentioned or available in the issue description, have the automation link that issue to the current one. I can add the components created in your screenshot, but I cannot find the last action trigger that you included that says the following: 

 
Then: Link issue to {{Descirption.body.match("[A-Z]+-\d")}}

(I am guessing it is the action that will take the issue mentioned and link it to the current one?)

I only have the 2 options from the dropdown menu:

Pasted_Image_22_03_2024__11_49.jpg

Any guidance or advice is much appreciated

 

[EDIT]:

Ok never mind my first comment, I discovered that I can paste content in the dropdown field press enter and it remains there. That was the part I was not able to figure out.

In the end the automation didn't work as it considers the key not available in the description (1st screenshot) where we can clearly see it in the description (2nd screenshot):

Screenshot 2024-03-22 at 12.29.14.png
----
issue description content.jpg
@Trudy Claspill  your input is deeply appreciated. Thanks



Thanks a lot 

Wael

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events