Forums

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

How to assign values to issues in lookupIssues or linkedIssues

Fredborg_ Bo _EMR_MSOL_RYDK_ December 13, 2024

Hi, I have a Discovery Project where i want a custom field (LRE) to be updated when a linked issue (Epic) in another project has its Original Estimate updated. 

For me it seems natural to use the trigger "issue updated" or "field value changed" on the source, i.e. the Epic. While having this setup I cannot figure out how to assign values to the destination project (Discovery Project). 

Using lookup issues as shown below, the lookupIssues holds the right idea from the Discovery Project, but I can not figure out how to assign a value to idea, e.g. like {{lookupIssues.get(0).LRE}}. It seems like Edit issue will only operates on the Epic. I also tried using branch rule but without any luck.     

{05356F23-0163-4675-9A0D-0982A5EA3117}.png{221DEF68-77C7-4FDA-8FDD-0FD4F3C8FA92}.png

1 answer

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 13, 2024

Hi @Fredborg_ Bo _EMR_MSOL_RYDK_ 

Welcome to the community.

This should work and I made a test using story point and this works.

See example rule I made.

Screenshot 2024-12-13 at 12.32.16.png

Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 13, 2024

Hi @Fredborg_ Bo _EMR_MSOL_RYDK_ 

M again, based on Original Estimate my above option will not function.

I have also a solution for this.

The trigger of the rule needs to be on the field "Time Tracking" and you need to create a field on the JPD project as well, based on text if you want the "Original Estimate" from the Epic to show the hour/day/week abbreviation besides the number

The rule stay the same from the start, jst make sure to use the "Time Tracking" field as the trigger.

Within the branch create a variable based on: {{triggerissue.timetracking.originalEstimate}}

The set the Edit to the new field on the JPD, by using the variable (in htis case, I named it {{time}}

Rule:

Screenshot 2024-12-13 at 13.12.07.png

Fredborg_ Bo _EMR_MSOL_RYDK_ December 23, 2024

Hi Marc,

Thank you for your answer. I think I need to elaborate a bit.

For each idea in the Discovery project there may be multiple Epics linked, each with an Original Estimate. 

{1E07DEA2-9223-49DC-9088-942288B815C8}.png

I want the LRE updated as a sum of Original Estimate for all related Epic. I cannot figure out how to iterate on all related Epic to the idea, when the trigger is place on the update of an Epic.

Secondly, seen from the perspective of the Epic, the relation to the idea is of type "implements", whereas from the perspective of the idea I have no clue... I have tried "is implemented by" and many of the others, but they seems all to return "".

{E8E179C6-8F1B-4A19-9DFA-90D0FEB69DE9}.png

Thanks,

Bo

Fredborg_ Bo _EMR_MSOL_RYDK_ December 26, 2024

Hi again, 

I found a fix, but it feels odd as I have to do every operation with reference to the issue from where the automation was triggered (not able to operate directly on the Idea).

{396E9D7F-24B2-4058-BE10-03225807031F}.png

This thing is now causing another problem.

When setting up a timer based (scheduled) automation I cannot figure out how to assign values to my Ideas.

I am able to identify all relevant Ideas to be updated, and generate the values (LRE) based on related Epic, but unable to assign values.

{35400A2F-F583-4FBF-BD14-2DB9B4913FBD}.png   

Error in the log

{72C02E29-FD52-4BEC-BCE1-50F78F5B0034}.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events