Forums

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

smart value for issues in the epic

Ilya Savichev June 28, 2023

According to documenation https://confluence.atlassian.com/automation/jira-smart-values-lists-993924868.html I can access to the fields of the listst.

E.g.

{{issue.Parent.Subtasks.Duedate.Min}} and it works

But how can I access to the fields of the issues of the epic, the similar construction doesn't work

{{issue.Epic.Issues.Duedate.Min}} - it doesn't  work! ((

 

So, please help me how to access to the isses of the epic?

 

2 answers

0 votes
Ilya Savichev June 28, 2023

Hi John, there are some details below.

 

I want to calculate Epic.Duedate as a maximum of Dudates of tasks of this epic.
I have a rule that starts if Duedate of an task is changed.
I need to compare Epic.Duedate with a Duedate not only of the triggered task but of all tasks of this Epic (e.g. Duedate of the triggered taks could be set Empty, but Duedates of other tasks could be > then epic's Duedate.)

So I need to get maximum of all duedates of all tasks of triggered task's epic ))

 

Smth like this {{issue.Epic.Issues.Duedate.Max}} 

In this sentence "issue" is a triggered issue, Epis - is an epic of the triggered issue, and I need to access to all epics's issues in oirder to get maximum of duedates

At the same time the similar costruction for issue and it's subtasks works: {{issue.parent.subtasks.Duedate.Max}}

And I need to find some analogue of {{issue.parent.subtasks}} for epic. {{issue.epic}} works. I hope it should be some {{issue.epic.XXX}} for its issues )

0 votes
John Funk
Community Champion
June 28, 2023

Hi Ilya,

Can you share your rule? It will depend if you are dealing with the issue directly or if it is the trigger issue or a linked issue or something else. 

Ilya Savichev June 28, 2023

Hi John, there are some details below.

 

I want to calculate Epic.Duedate as a maximum of Dudates of tasks of this epic.
I have a rule that starts if Duedate of a task is changed.
I need to compare Epic.Duedate with a Duedate not only of the triggered task but of all tasks of this Epic (e.g. Duedate of the triggered taks could be set Empty, but Duedates of other tasks could be > then epic's Duedate.)

So I need to get maximum of all duedates of all tasks of triggered task's epic ))

 

Smth like this {{issue.Epic.Issues.Duedate.Max}} 

In this sentence "issue" is a triggered issue, Epis - is an epic of the triggered issue, and I need to access to all epics's issues in oirder to get maximum of duedates

At the same time the similar costruction for issue and it's subtasks works: {{issue.parent.subtasks.Duedate.Max}}

And I need to find some analogue of {{issue.parent.subtasks}} for epic. {{issue.epic}} works. I hope it should be some {{issue.epic.XXX}} for its issues )

John Funk
Community Champion
June 28, 2023

Thanks for the details. Here is a rule that I use, see if it meets your needs. Be sure to tweak it for your particular scenario.

Screenshot.png

Ilya Savichev June 28, 2023

Thanks, John! But we have Jira Server, not Cloud, there is no "loookup issues".. (( 

Like John Funk likes this
John Funk
Community Champion
June 30, 2023

Yeah, that stinks.  :-(   Time to migrate!!

Suggest an answer

Log in or Sign up to answer