Hi Guys,
Does anyone know how to calculate sum of a custom number field from all epics to their initative? I tried ScriptRunner and JMWE. JMWE seems more simple. But I cannot get the right value. It always return NAN.
Here is the case:
We use advanced roadpmap in our jira cloud. Use the Initiative and Epic types. Added a custom number field: Score. Want to calculate sum of Score in all epics automaticlly.
- TIS-1 Initiative issue: (Score: <Empty>)
|----TIS-2 Epics issue No.1 (Score: 11)
|----TIS-3 Epics issue No.2 (Score: 22)
|----TIS-4 Epics issue No.3 (Score: 33)
|----TIS-5 Epics issue No.4 (Score: 44)
Use Event-based Actions in JMWE:
Current issue: TIS-2
Target issue: TIS-1
{{issue | initiative()|membersOfInitiative("Score")|sum("Score")}}Always return: NaN
BTW: If you have any suggestion by ScriptRunner, please don't hesitate to comment!!
Thanks in advance!