[JMWE] How to sum fields on linkissue?

RIZKY JTUASIKAL April 29, 2024

I use the following query to sum the fields in the subtask :

1..PNG

for that query, was successfully executed.

 

 

then, I use the following query to sum the fields in the linkissue :
2..PNG

but I get the following error message:

3;.PNG

 

 

Did I miss something?

2 answers

1 accepted

2 votes
Answer accepted
David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 29, 2024

Hi @RIZKY JTUASIKAL 

the name of the filter is linkedIssues (with an "s")

RIZKY JTUASIKAL April 29, 2024

Hi @David Fischer ,

 

as always, thanks for the feedback :)

but I have a question,
after adding “s” to LinkIssues, I get the following “Warning” message:

warning.PNG

What does the warning mean?
Do I need to change anything else?

RIZKY JTUASIKAL April 29, 2024

and one other error message:

Capture.PNG

David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 30, 2024

Hi @RIZKY JTUASIKAL 

That's because you need to pass the list of fields as an array:

linkedIssues(["customfield_12529"])

 However, to be fair, I haven't tested this without passing an outside link type name as the first parameter.  

RIZKY JTUASIKAL May 1, 2024

Hi @David Fischer,

I tried it, and it worked!!
here's the query:

{{ targetIssue | linkedIssues(["customfield_12529"]) | sum("fields.customfield_12529") }}

and here's how it looks:

1.PNG

 

thanks to you, David!

 

0 votes
Marie-Hélène PARISATO May 7, 2024

Hi, i'm very interrested in what you do and i would like to ask you where did you use those query ? Is there in automation rules ? 

I have to do something like that in automation rules. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events