Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,528
Community Members
 
Community Events
165
Community Groups

Allocate Assignee based on linked Issue (using Single Issue Linker)

I have a parent issue of type "Group", and a child issue of type "Issue" however, I have created a custom field called "Linked Group" which is a single issue linker type field ( that points to the list of "Group" issuetypes. 

When an "issue" is transitioned from "Open" to "Assigned" via the "Assign" Transition I wanted to apply the following logic... 

  • IF there is a linked Group ( via the issue linker field ( called "Linked Group" ) then. 
  • Find the Linked Group's  Assignee value. 
  • Then update the "issue" object to make the issue.assignee == the linked group's assignee. 

I have looked at everything ( and everywhere)  however I cannot get it right..  -- Some of my challenges are: 

  • I dont actually know what link type is used on the issueLinker type ( I heard its not a bi-directional link) 
  • I dont know what the best way to implement this is ( since i do have ScriptRunner)
  • essentially, i could move the "Group" issue to a "Linked Epic" or "Parent"  -- however the users did want to see the field name "Linked Group" from the screen -- so also looking for advice there, 

Much thanks! 

1 answer

Hi Hightower

I strongly recommend you to use Epics for your use case.
Epics have built-in functionalities you can use.

Creating a big workaround, only because your users are not happy with the word "Epic" instead of "Group", will lead to loads of problems that can be avoided.

 

That said...

I don't know what you mean with "Issue Linker" Field. Do you mean the "Issue Picker" Script Field provided by Scriptrunner?

As for your question:

You can achieve your workaround-goal by using a scriptrunner postfunction on your transition open->assigned

That script would get the assignee of the "linked group issue" and set it on the current issue (which is being transitioned)

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

203 views 1 4
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