Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Pulling the latest comment for each issue with Automation

Shiyao Ling June 26, 2024

Hello,

I am very new to Jira. We are trying to auto populate a custom field with the last comment for each issue in a project.

I have followed the steps from various existing resolved posts out there: create custom field > create automation rule to populate the field with the latest comment. The rule works when I only have the custom field in 1 type of issue, but as soon as I add the same custom field to another issue type, I run into problems. What am I doing wrong? Does each issue type within the same project require its own unique custom field name?

Here is the rule I set up:

Screenshot 1.jpgScreenshot 2.jpg

This is the error I get if I add the same custom field to more than one issue type.

Screenshot 3.jpg

Thanks!

 

1 answer

1 accepted

0 votes
Answer accepted
Bill Sheboy
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.
June 26, 2024

Hi @Shiyao Ling -- Welcome to the Atlassian Community!

Did you confirm there is only one field by that name, Last comment text, in your team-managed project for the different issue types?

For the trigger issue's type in that example, did you confirm the field was added to the views?

 

To help confirm both of those, please use this how-to article with example issues to check the field is present, unique, and has the same custom field id: https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

Kind regards,
Bill

Shiyao Ling June 27, 2024

Thank you Bill! The how-to article was super helpful, I found out the problem and now the automation rule is working properly!

Like Bill Sheboy likes this
Bill Sheboy
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.
June 27, 2024

Awesome; I am glad to learn that helped!

What was the root cause of the problem?

Shiyao Ling June 27, 2024

It was such a rookie mistake.  For each issue type, instead of just creating a new custom field for the first issue type then drag and drop from the "suggested fields" bar for the remaining, I was creating a new custom field and typing in the name for every single one of them. This indeed resulted in several custom fields with the same name, and the only way I discovered/confirmed that was by looking at the smart value. So thank you!

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