Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Copy field values from issues linked via the Parent Link field using Automation for Jira

Hello all,

I am new to Automation for Jira and have a scenario that I could use some help with. We use the Advanced Roadmaps hierarchy to link most of our work in the following manner:

Portfolio Epic > Program Epic > Epic > Story

Linking our Epics to Program Epics and up is accomplished using the Parent Link field. We are in process of migrating to the cloud and want to leverage Automation for Jira, which will help us to reduce our effort fixing workflows and feel that we have some opportunities.

Where we seem to be falling a bit short is figuring out how best to use Automation to copy field from those parent issues when they are created. Example: If I create an Epic, connect it to a Program Epic using the Parent Link, then I want to copy fields from that Program Epic onto my Epic.

Using Automation, my thought is to have:

1. Issue Create Trigger

2. Condition to determine if Parent Link is not empty

2a. If not empty then copy fields from Parent issue

 

I started with Comparing values but this does not seem to work

{{issue.customfield_15004}} does not match regular expression (^null$|^$)

And my understanding is that JQL has some performance impacts, so it is better to use smart values where possible.

Now, we are not trying to solve all the world's issues yet, but if we could get some assistance or recommendation on how best to approach this scenario, would would be greatly appreciative as our next step will be to build on this so we have 1 rule to manage several issue types within our hierarchy.

 

Thanks in advance.

1 answer

1 accepted

1 vote
Answer accepted

Hi @Thomas Hardin 

My understanding from an Atlassian's rule engine developer's community post is that most everything in rules is driven by JQL queries and the API, so I wouldn't worry about performance of a rule until you see performance issues for the rule.  Then investigate improving it and monitor it over time.

That being noted, I suggest creating your rule and improve it as you go.  If you have problems creating the rule, please post an image of your rule, the audit log, and the symptoms you observe.  That will help the community give you suggestions.

The one challenge I expect you to run into is: are all of the fields you want from advanced roadmaps available?  One way to determine that is check for the smart values using techniques from this article: 

https://support.atlassian.com/jira-software-cloud/docs/find-the-smart-value-for-a-field/

Best regards,

Bill

@Bill Sheboy Thanks for the reply. So, my goal isn't to copy actual Roadmap fields, but to copy fields from the Parent issue of the Epic, which is linked via the Parent Link field. Here, when and Epic is created, I need to determine if the Parent Link is populated, and if so, go get the issue key and copy fields from it onto the Epic. In this case, the first field I'm trying to copy is the Account field from Tempo. 

Here is my initial rule:

Copy Account Rule.png

I thought I could use the Branch option to find the parent issue key using jql and the trigger issue, which would then pull the account field:

Copy Account Edit Action.png

Unfortunately, when I attempted to create my Epic, the result was that no actions were performed.

Copy Account Log.png

 

I hope my thought process is somewhat in the ballpark:

1. Create an Epic

2. If Epic has a Parent (Parent Link is not empty)

3. Go find Parent issue

4. Copy fields from Parent issue

 

Thanks for any advice or assistance!

Thanks for that information.  First, let's review how to accomplish what you asked and then second review your current rule.

First, to accomplish your goal:

  • Writing to the audit log is helpful, so consider adding some log actions to see if you are getting what you expect...like after that JQL condition
  • Rather than using the branch and edit, you can just use the edit action, and after you select the field, note the ... menu at the right side.  You can select to copy from parent from there

Second, to review your current rule:

  • Your branch is on the JQL to match to the parent link, and that will try to match to *all* issues with that parent.  That may not be what you wanted.
  • When you are inside of a branch and use edit issue, you are editing each issue the branch finds; not the triggering issue (the one created)

Please let me know how that works for you.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

☕️ Monday coffee with Jexo: Weekly Atlassian news roundup | 21st June 2021

Hi community 👋, as every Monday we're bringing you a quick update on what happened in the Atlassian ecosystem last week. There were a few interesting events like for example the announcement of th...

56 views 0 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you