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

RTC RTC REST URI : Is there a way to escape meaning of [ ] in the uri, Getting error if the uri contains [ ] as a part of data.

Hello All,

I have a usecase wherein, i need to get the details of the workitems in a particular PLANNED FOR using REST URI.

server/rpt/repository/workitem?fields=workitem/workItem[+target/name='SOME PLANNED FOR '(id|summary|category/name|target/name|target/endDate|type/name);

If i have a [ ] in the PLANNED FOR, then am not getting the output. e.g : "Test planned for - R1 [R001.0]" Am getting the following error :
Error 500: CRRED0122E: Illegal syntax in fields argument: '.

For rest of the planned for it is working fine.

Is there any way to escape this [ ] ?

Request you to assist on this.

Thanks.


0 votes



One answer

Permanent link

The keyword here is "URL Encoding", I think. If you know that Google is amazing. 8)

Start here: https://www.w3schools.com/tags/ref_urlencode.asp
My search on stackoverflow indicates that there are different encoding schemes that might apply for different parts of the request. URL encoding if you use the stuff in an URL and then header/parameter encoding.

This is basically nothing special to the products. This is driven by open standards.

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
× 10,936
× 478

Question asked: Oct 17 '17, 2:35 a.m.

Question was seen: 2,695 times

Last updated: Oct 18 '17, 1:59 a.m.

Confirmation Cancel Confirm