Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I copy an item field value from another project to a linked Item with an effector

Floris Scherb
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 15, 2022

Dear Community,

I want to write an effector to solve the following problem:

I want to run the effector so that it copies and pastes a field value from an item to another item in another project. Both items are linked over one field value.

Example.

Project 1
Item A:
Liked field value: x
Value points: 200 <-- I want to copy and paste this value with an effector to Item B in                                               Project 2 with an effector.

Project 2
Item B:
Linked field value: x
Value points: (Empty)

Best Regards

1 answer

2 votes
Nicholas Ellis _ALM Works_
Atlassian Partner
August 12, 2022

Hi Floris,

Welcome to the community!

This is actually pretty easy to solve with Expr. We can access issue links, and then pull in values from the linked issues.  I'll assume the link is a blocks type, but you can look for any type.

issueLinks.FILTER($.destination = this and $.type = "blocks").map($.source.value_points)

issue links contains all links, $ represents each link which has a source issue, destination issue and type.  Here we look for blocks type links that point to this (current issue), then we map to return all value points from the source issue (i.e. the issue blocking this issue) as there could be multiple links, so we might return multiple values.

Also here is the relevant documentation. issue links definition and issue link examples

Cheers,
Nick [ALM Works]

Suggest an answer

Log in or Sign up to answer