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

Is this possible to take substring in JRS 6.0.1

Hi Team,

Is it posible to take substring in JRS 6.0.1.
For example:
There are some data where we need to cut the string like xyz_1010 here we want only numeric value then how we are going to take this in JRS??

0 votes

Comments

Sorry. I don't understand your question. Could you provide a screenshot of what you are trying to construct in Report Builder? What kind of condition or query are you trying to build?

As shown in below expression:

if(position( '', [Proj_TEAM_CALC] ) = 0)

then

([Proj_TEAM_CALC])

else

(substring( [Proj_TEAM_CALC], 1, position( '', [Proj_TEAM_CALC] )-1) )

 I'm not sure about the original poster, but for us we aren't looking for a substring in conditioning, but more a substring capability in the formatting/output.


For example, we have a group of stories that use the same text at the beginning of each Work Item Summary, such as  "Milestone 12:  <remaining text>", or with the original question "xyz_1010".   We'd like to be able to take the substring of that and display it in its own field output for grouping/calculations.  


Accepted answer

Permanent link
 Hello,

This is not currently part of the core wizard capability.  It may be possible using advanced SQL and experimenting with conditions such as Proj_TEAM_CALC LIKE'%_[0-9]%'.

You can do partial match searches at report creation time where if you type something in the search box for the condition it will narrow down the choices based on a fuzzy match of the search string.  Then you can "Select all" to choose all the displayed values.

We have a story that seems related to your request: 391983: As a user, I would like the ability to use a wildcard as part of defining a condition in a report.  Feel free to add comments related to this workflow and / or vote for it.

Regards,

-Steve
Rosa Naranjo selected this answer as the correct answer

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
× 362
× 13

Question asked: May 26 '16, 8:01 a.m.

Question was seen: 3,433 times

Last updated: Jun 06 '16, 10:01 p.m.

Related questions
Confirmation Cancel Confirm