Forums

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

Question with the Count {} forumla

Ian Porter
Contributor
September 20, 2021

Lets say i wanted to count the number of times a formula created a specific output

custom formula :

if (issuetype = "task" and assignee = undefined"; "missing assignee")

then the count formula would be;

if(issuetype = "feature";

if(count{customformula = "missing assignee"}>0;"Missing Assignee")

but its not working, any help greatly appreciated

3 answers

1 accepted

0 votes
Answer accepted
Ian Porter
Contributor
September 21, 2021

Thanks for your answers but i have fixed the issue with trial and error

if(  issuetype = "task";
if(  labels = undefined and  assignee = undefined;
"Missing Labels & Assignee";
 labels = undefined;
"Missing Labels";
 assignee = undefined;
"Missing Assignee");
if(  issuetype = "feature";
if( sum{count{if ( taskcheck != undefined;1)}};
"Fail";
"Pass")))

 

then the variable taskcheck;

if(  issuetype = "task";
if(  labels = undefined and  assignee = undefined;
"Missing Labels & Assignee";  labels = undefined;
"Missing Labels";   = undefined; "Missing Assignee")) 

Now all stays in a single column but works on the level that is needed 

0 votes
David Niro
Atlassian Partner
September 20, 2021

Hello Ian,

David from ALM Works here. 

Based on what you have described, I believe this will help:

If(customformula = "missing assignee",1)

Then select the "Sum over sub-items" option

This will convert the results from your first formula into a number and then the Sum will be calculated at the "parent" levels of the hierarchy.

Please let me know if this helps!

Best Regards,
David Niro
www.almworks.com
support@almworks.com

0 votes
John Funk
Community Champion
September 20, 2021

Hi Ian - Welcome to the Atlassian Community!

I am a little confused - formuals/filters don't create outputs. They simply show details about your issues. It is things that trigger an event like updating an issue or transitioning an issue that creates output. 

Can you describe the exact scenario of what you are wanting to capture? 

Ian Porter
Contributor
September 20, 2021

I am trying to respond but it will not let me due to "posting the same thing elsewhere" which i have not done.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events