Forums

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

Want to automate field in Initiate level which should be reflect in Epic

Arvind
Contributor
December 11, 2023

Hello All,

I have custom field (Customer) on Initiative level and want to automate that once this field is updated the Customer information should be filled on Epic level as well.

Seeking help on it

2 answers

1 accepted

1 vote
Answer accepted
Arvind
Contributor
December 12, 2023

Pls check the latest info

0 votes
Ben Finn
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.
December 11, 2023

Hi @Arvind

If I understand you correctly, the initiative is above the epic and connected by the "Parent Link". You want to make it so that when the Customer field is updated on the initiative level, you push down the updates to the epic level.

This is possible with Automation.

1. When: Value changes for "Customer"

2. If issuetype = initiative

3. For: choose JQL

4. Then: Edit issue fields and use the smart value {{triggerIssue.xxxxxx}} - replace the xx's with the custom id for the field you want to update.

Please let me know if this works for you.

Ben Finn
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.
December 11, 2023

In part 3, you will want to use this JQL:

"Parent Link" = {{issue.key}}

Arvind
Contributor
December 11, 2023

Not getting the required details..

Arvind
Contributor
December 11, 2023

Can you have a look..pls

Ben Finn
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.
December 11, 2023

Hi @Arvind

Happy to look, can you provide a screenshot of your automation and explain what is not happening?

Like Arvind likes this
Arvind
Contributor
December 12, 2023

JIRA_AUTO.png

Ben Finn
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.
December 12, 2023

So the automation you have there is quite different the the one i recommended. Can you try this one and see if it works for you?

Notable differences:

- No need for the lookup, my JQL is just to ensure the change is an initiative issue type.

- Since the issue type is not epic, the For: Stories may encounter problems, so i recommend a simple For JQL and look for the parent key.

Here is a screenshot to help:

 

Screenshot 2023-12-12 090642.png

Like Arvind likes this
Arvind
Contributor
December 12, 2023

Customer_JIRA.png@Ben Finn still not updating the Customer field in Epic level...

Ben Finn
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.
December 12, 2023

It works for me. Interesting.

Two possibilities on the top of my mind. Can you show me the details of the "edit issue" component? Also can you show the audit log with its details expanded?

Arvind
Contributor
December 12, 2023

Hello @Ben Finn ..Thanks for your reply.

Pls find below the requested details. "Edit Issue"

 

Audit Log:

image.png

Ben Finn
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.
December 12, 2023

Edit: copy and pasted the wrong string. Updated with the right string

Thank you for the screenshots. So you've covered up one of the pieces I really wanted to see. In the edit issue, in that set box that you're drop down is covering up, are you using this string:

{{triggerissue.customfield_10000}}

Replace the XXX with the ID for the custom field

If not, give it a try.

The trigger is working and it is updating LCE-29, I assume this is the correct issue it's supposed to be updating. If so that means the only problem is it's not updating the right field or using the right data to update. Which means we've narrowed down the problem to that edit component.

If it's not supposed to be updating LCE-29, then we need to look at other components.

Like Arvind likes this
Ben Finn
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.
December 12, 2023

If you don't know the custom ID, then open up your custom fields in the settings and go to the customer custom field and click edit. You'll find the ID in the URL. It will be the last five numbers in the URL. Use those numbers to replace the 10000 in the smart value below.

The format you should use is 

{{Triggerissue.customfield_10000}}

Like Arvind likes this
Arvind
Contributor
December 12, 2023

Thanks @Ben Finn ...Many Many Thanks...:)

Its working now..

Ben Finn
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.
December 12, 2023

So happy it worked out for you @Arvind ! Have a great day!

Like Arvind likes this
Arvind
Contributor
December 15, 2023

Hey @Ben Finn ,

 

Again seeking your expert advice. 

I wanted to auto create Epic->User Stories->Tasks while creating new Initiative. which is working fine.

How i can automate the rule which can help me to auto link as below while creating these structure. i.e Initiative will be my Parent link and User story/Task will be child to Epic

Initiative->epic->User story->Task

 

Suggest an answer

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

Atlassian Community Events