Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Custom expressions in Jazz Report Builder

 Three quick questions:

1. Can I build conditional custom expressions in Report Builder? Something like a case statement...
CASE
     WHEN (T7.LITERAL_NAME IS NULL)  THEN 'ERROR'
      ELSE 'OK'
END TEST_RESULT_VALIDITY

2. Can I use multiple arguments in custom expressions in Report Builder?

3. Can I use colors with the result of a custom coded SQL column? I added a case statement which considers multiple arguments in the Advanced bit, but when I try to add color I just get errors. Am I doing something wrong?

0 votes



One answer

Permanent link

 To answer bits of this:

1. YES. An example which works:
CASE 
WHEN ($Requirement:Necessary (Custom)$  = 'Yes') THEN 5
WHEN ($Requirement:Necessary (Custom)$  = 'Acceptable') THEN 2.5
WHEN ($Requirement:Necessary (Custom)$  = 'No, rework') THEN 1
ELSE 0
END
2. NO. I havn't been able to find a way to do this other than manual editing of the SQL query using the Advanced tab.
3. NO. This does however work for columns which are computed by the custom expression builder, but not for ones computed using expressions entered manually in the Advanced tab.

Unless somebody has additional input?

1 vote

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Aug 21 '17, 6:20 p.m.

Question was seen: 4,531 times

Last updated: Aug 22 '17, 9:07 p.m.

Confirmation Cancel Confirm