Is there a way to copy a field to a linked issue on issue edit, using the plugin?

Hi,

When I edit the fixVersion on an Epic, I want to automatically copy the fixVersion to some issues within the Epic.  Is there a way I can do this using the automation plugin (which I'm evaluating currently), or in some other way?  Some points to note:

  • Using post functions I can do the job when transitioning the Epic but I want the copying to happen when I edit the epic, not just when I transition it.  So I guess if there is a way to fire a post function when an issue is modified, that would do the job.
  • The issues I want to update are not in the same project as the Epic.  However I am ensuring that the versions to be copied exist in the target project.

Any help appreciated!

2 answers

0 vote
Nick Menere Community Champion Sep 25, 2016

Hey Carlos,

At the moment you can only act upon the issue that has triggered the rule.  We want to extend this to enable use-cases like yours. We would like to be able to perform actions on issues associated with the current issue - https://codebarrel.atlassian.net/browse/AUT-33

It being in another project could be another issue but we have some thoughts around that.

Until we implement that, you can use the transition to do this by creating a transition for the issue that loops back to itself. You can then use automation to to trigger the transition when the epic is updated.  It will stay in the same status but the post-function will be called.

Cheers,

Nick

Thanks Nick.  Any idea if / when AUT-33 will be worked on?  Your suggested solution works but is also a little heavy in that I can't control which of the linked issues will be updated (which I will want to do), plus the original issue transition history quickly gets polluted with lots of transitions which are effectively NOPs.

Nick Menere Community Champion Nov 13, 2016

Hey Carlos,

We spent the last few weeks getting the Server version of Automation out. Now that is done we can get back to doing some more features. This one is near the top of our list so hopefully we will get to it soon.

 

Cheers,

Nick

Nick, I tried voting up on the ticket, but I can't see it any more now that I'm logged in. Let me say that I'm wanting the same thing(and should be a paying customer at this point).  Happy to beta test it as well!

0 vote
Nick Menere Community Champion Dec 27, 2016

Carlos, Casey,

Sorry but I forgot to update this issue.

Copying a field to a linked issue is trivial now. You should be able to do this with a rule like:

image2016-12-28 9:51:28.png

This rule listens for any change in the assignee and then copies that value to all the linked issues.

The secret sauce here is the "Related Issues Action" that allows you to iterate over issues related to the current issue - in this case linked fields. You can also select sub-tasks, parent, stories, epic and JQL.

Hope this helps.

 

Cheers,

Nick

Hi Nick

It's been a while but I finally got to trying this.  The set-up is great and makes sense but it doesn't seem to be working for me.  I have:

"When: Value changes for Fix Version/s" ->

"Then: For Stories (or other issues in Epic)" ->

"Then: Edit issue fields".  The field I'm setting is Fix Version/s and I've set it to "Copy from Epic".

But when I edit Fix Version/s in the Epic, the issues in it are not updated.  If I look in the audit log, the rule ran with Status: Success, but under "Show more" I see:

BRANCH RULE / RELATED ISSUES
No related issues could be found.

Am I missing something?

Many thanks

Carlos

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

300 views 3 11
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you