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

How to concatenate columns in an LQE-based report?

 How can I concatenate columns in an LQE-based report in JRS?

0 votes



2 answers

Permanent link
LQE-based reports use SPARQL so you will have to consult documentations on how to write SPARQL queries.

To combine 2 string columns in a report, you can add a CUSTOM EXPRESSION column and enter an expression in it. For example, in a simple report where you list all defect workitems in a particular project, you can concatenate the ID and Tile column into one column by using the following custom expression:
concat(str($Defect:Id$), ": ", str($Defect:Title$))

Note that Defect in the expression is the workitem type selected in the report (it appears in the 'Attribute Of' dropdown). The name maybe different.


Another example of the expression to concatenate multiple columns:
concat(if(bound($Defect:Title$), concat(str($Defect:Id$), ": ", str($Defect:Title$)), ""), "  ", if(bound($Story:Title$), concat(str($Story:Id$), ": ", str($Story:Title$)), ""))

sample output

0 votes


Permanent link

 For both DW and LQE based reports, the columns can be combined simply by adding the columns and giving them the same label. The following message will appear when you add such columns.


message

0 votes

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
× 12,019
× 7,495
× 1,325

Question asked: Jul 16 '21, 10:14 a.m.

Question was seen: 1,162 times

Last updated: Sep 03 '21, 12:47 a.m.

Confirmation Cancel Confirm