Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

[Structure][History] Get the issueKey of the parent on a D DAY

agnes BOURLON
Contributor
April 7, 2024

Hi

I tried to get the parent issue key of the US (the EPIC issue Key) on a specific Day in the past

to check if the US was linked with another EPIC in the past

 

This is what I would like to do :

with epicID = parent{issuekey}:

with epicIDH = parent{historical_value(this, "issuekey",date("2024-01-20"))}:

if issueType=EPIC:
"--"
else if epicID=epicIDH :
"No Change"
else : 
"The US has been moved from an EPIC to another one"

 

As it was not working I debugged and simplified the script :

with epicIDH = parent{historical_value(this, "issuekey",date("2024-01-20"))}:

epicIDH

 

=> I got no answer. 

 

So I do the same for the "today value"

with epicID = parent{issuekey}:

epicID

And here, I got the key ! OK

 

Why this doesn't work in the past ? Perhaps this field is not supported in historical value?

Many thanks in advance,

Best regards

Agnes

 

 

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
agnes BOURLON
Contributor
April 7, 2024

I found a best way to get the key of the parent (which is an EPIC) using the EpicLink directly on the US. No need to read an attribute on the parent

 with epicID = EpicLink:
with epicIDH = historical_value(this, "EpicLink",date("2024-01-20")):

if epicIDH =epicID:
"-"
else:
concat("Previous Epic : ",epicIDH)

 

This is OK, I can get the information when the US was moved from on EPIC to the current one.

TAGS
AUG Leaders

Atlassian Community Events