It's all about the answers!

Ask a question

How to access custom attributes of a particular work item?

Amol Wangate (155) | asked Jun 17 '19, 8:57 a.m.
edited Jun 18 '19, 5:25 a.m. by Muralidhar Rajagopal (10114)
This is the API URI I'm using and able to get data with this condition:

However, there is a custom attribute named "External ID" that I want to extract to, and when I embed it in the url just like how i embedded "creator name", I get not a valid field name error. Please help in resolving the error. Thank you!

One answer

permanent link
Don Yang (7.6k2196132) | answered Jun 20 '19, 2:33 a.m.
Referring to the discussion here:

If your custom attribute is string type, it would look like:

https://myjazzserver:9443/jazz/rpt/repository/workitem?fields=workitem/workItem[projectArea/name='Defect Management']/(id|summary|(creator/name)|(stringExtensions[key='External ID']/value))

I hope this helps.

Your answer

Register or to post your answer.