Hi, I am looking to write a custom formula which will actually present the number of bugs fixed to the number of bugs open.
I looked at https://wiki.almworks.com/display/structure040/Advanced+Formula+Configuration
and I am unable to find help to configure a formula that checks for the status of the issue.
I am trying something like this:
WITH total_bugs =
SUM{ IF(itemtype='bug'; 1) } :
WITH open_bugs =
SUM { IF(itemtype='bug'; 1) AND IF(status NOT in ('closed', 'done', 'resolved'))};
IF (total_bugs > 0;
SUM IF(total_bugs-open_bugs/ total_bugs);0)
any pointers will be very useful.
Hi Mukund,
Structure's formula does not currently support IN statement, though we are planning to introduce lists and operations with them in one of the upcoming releases. Currently, you can use MATCH or SEARCH functions, so you can replace
IF(status NOT in ('closed', 'done', 'resolved')
with
IF(SEARCH(status, "closed,done,resolved")
Note that it can fail if you have statuses for example "resolved" and "not resolved", as it will find resolved in both names, but in common use cases it should work fine.
Regards,
Egor Tasa
ALM Works
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.