Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

How to copy assignee from linked issue to trigger issue?

Edited

How to copy assignee from linked issue to trigger issue?

Hi, guys!

Need help in Jira Automation again

I need to create automation rule for next case:

When Issue status change from "A" to "B"

AND Component EQUALS to "SOME"

Then COPY assignee field from Linked Issue WITH Type = Story TO Trigger Issue 

 

Thanks a lot for your help!

 

1 answer

Hi @Dmytro Shaforost 

What have you tried thus far to solve this? 

I recommend using a branch or lookup issues to find the linked issue, save the assignee, and then you should be able to update the trigger  issue.  If you decide to use the lookup, you can directly use the value in the edit.

  • trigger: issue transition
  • action: lookup issues on JQL to get a linked issues of that type
  • condition: the lookup count equals 1
  • action: edit issue to copy the assignee from the lookup

Kind regards,
Bill

Thanks @Bill Sheboy i give up :( i can't write jql request to get a linked issues of that type... I don't understand how to get list of linked issues with type story from trigger issue

and how to set a condition count = 1

 

@Bill Sheboy can you help with that? 

Please try to use the linkedIssues() function:

https://support.atlassian.com/jira-software-cloud/docs/advanced-search-reference-jql-functions/#Advancedsearchingfunctionsreference-linkedIssueslinkedIssues--

For example, to find the linked stories for the trigger issue:

issue IN linkedIssues( {{triggerIssue.key}} ) AND issueType = Story

Please also look at the documentation for lookupIssues and lists to learn about size:

{{lookupIssues.size|0}}

Like Dmytro Shaforost likes this

Suggest an answer

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

Send an Email or Publish to Confluence - What should you do with your release notes?

Background When you hear the words ‘Release notes’, almost always you think of an unsolicited email from a software vendor. But I am here to tell you that from our data, sending release notes via E...

130 views 1 2
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