Is it possible to update fields of all linked issues of an issue if this main issue has field update ?

Hello , is it possible to update fields of all linked issues of an issue if I e.g. add a new Fix Version field to my main Issue......can I than automatically update this Fix Version value in all the linked issues to this issue........or can I make an SQL Query to get all the linked issues of certain issues ??

3 answers

1 accepted

1 vote
Accepted answer
Vasiliy Zverev Community Champion Mar 16, 2016

For automatisation of update of all linked issues you will need some script. Namely you will need a listener on update issue event.

ok but this listener is not for free ? sure i have to pay a plugin ?

I would tend to favor a solution without scripting. Easier to maintain and quicker to setup. Your problem would be easy to do if the update happens on a transition of the source issue. You'll need to Misc. Workflow Extension plugin and use the Copy Field Value To Linked Issues post function

Since typically a field like Fix Version would be set when an issue is set Resolved or something similar, that solution would work I think. Or you could add a workflow transition from the status back onto itself and use the post function there. That would be your "edit and copy field value" transition and not actually change the status.


"Or you could add a workflow transition from the status back onto itself and use the post function there."–that would mean that i can make a transition without actually changing my status ? how can i do that ? i think the post function to update a field value i know already

In the workflow editor, in diagram view, you can literally make a transition arrow go from Status A to a different little white dot in the Status A. It looks like a loop, and that's a valid transition. You can even add a condition so that only certain users can see it, and a validator to make sure there's a value in Fix Version.

This "self transition" is a neat trick that can have other applications too. JIRA doesn't have field-level security, but you could use a transition like this to overcome that.

Let's say you want all users to view the Priority of an issue, but want to allow only managers to change it (or maybe the other way around, these pesky managers keep changing priorities for no reason smile). What you do is this:


  1. Create one screen that has the Priority field and use that as your View screen in the Screen Scheme.
  2. Make another screen that doesn't have Priority and use that as your Edit screen in the scheme
  3. Make a transition from a status onto itself and use the screen with Priority as the transition screen
  4. Apply a workflow condition on the transition to allow only the specific Managers group or project role.

This way, you get a "hidden" transition, accessible only to managers, to edit the Priority, preventing others from editing it.

High level, you can do both.  Syncing between parent/child (issue/subtask) or link/link is fairly straightforward.  I have an issue/subtask FixVersion sync Script Runner listener that updates the subtasks whenever the parent value is changed, or whenever the child value is changed (say, linking a new child that was out of sync, etc).  I posted a copy here:

Beyond that, you can use the (again, Script Runner) issueFunction method in JQL to find such children.  For issue/subtask, you could use, for example:

issueFunction in subTasksOf("project=X and FixVersion=\"1.0\"")

This would get you all of the subTasks.  There is a similar function for links, "linkedIssuesOf", which takes a subquery like above, plus an optional link name.

For more specific help, we'd need to know how the parent/child relationship is modeled (issue/subtask, or specific outward/inward links, or custom fields, etc, etc).

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

77 views 3 3
Join discussion

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