Forums

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

[JMWE] How to sum fields on linkissue? (with specific Field)

RIZKY JTUASIKAL
Contributor
June 6, 2024

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

image (1).png

and for that query, was successfully executed.

 

What if I want to add one more filter, with a specific value of a field, will the query form be like this?

{{ targetIssue | linkedIssues(["customfield_12529","customfield_12345","issuetype"]) | filter(["fields.issuetype.name","MoA Project"]) | filter (["Pengurangan"]) | sum("fields.customfield_12529") }}

 

customfield_12345 is a field of type : Select List (Single Choice)

field.PNG

 

Thanks in advance

1 answer

1 accepted

1 vote
Answer accepted
David Fischer
Community Champion
June 6, 2024

Hi @RIZKY JTUASIKAL 

this is the correct syntax:

{{ targetIssue | linkedIssues(["customfield_12529","customfield_12345","issuetype"]) | filter(["fields.issuetype.name","MoA Project"]) | filter (["fields.customfield_12345.value","Pengurangan"]) | sum("fields.customfield_12529") }}
RIZKY JTUASIKAL
Contributor
June 6, 2024

Hi @David Fischer ,

 

So, I just need to add a query like this:
“fields.customfield_12345.value”

and I've tried the query, and it works!!!

by the way, is there any URL or documentation to learn this kind of thing? maybe like "JMWE Documentation"?

 

thank you very much once again, David
God bless you

David Fischer
Community Champion
June 6, 2024

Of course, there's a whole documentation, including a lot on Nunjucks, here: https://appfire.atlassian.net/wiki/spaces/JMWEC/overview

Like RIZKY JTUASIKAL likes this

Suggest an answer

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

Atlassian Community Events