It's all about the answers!

Ask a question

How to specify queryable workitem attribute?


Yasuyuki Kubota (34915) | asked Jul 03 '14, 9:17 a.m.
I'm going to develop a server side follow-up action and a client side aspect editor.
I want to list the workitem attribute on my aspect editor to select workitem attributes
These workitem attributes are used for workitem query in follow-up action.

I know some types of workitem attribute is not queryable, e.g. large string, large html, etc.
but I don't know how to specify programmatically queryable workitem attribute like the Query Editor.

Does anyone feel like giving me a hand?



Comments
Ralph Schoon commented Jul 07 '14, 4:38 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

I am not sure what you are asking here. You might want to provide a bit more information what you specifically want to achieve.

https://rsjazz.wordpress.com/2012/11/19/using-expressions-for-automation/ shows how to create expressions which are the basis of queries. https://rsjazz.wordpress.com/2012/10/29/using-work-item-queris-for-automation/ shows how to call queries.

Accepted answer


permanent link
Yasuyuki Kubota (34915) | answered Jul 07 '14, 9:41 p.m.
Hi Ralph,
Finally I have found "IQueryEditorRestService".
https://jazz.net/sandbox02-ccm/service/com.ibm.team.workitem.common.internal.rest.IQueryEditorRestService/attributeTree?queryType=com.ibm.team.workitem.workItemType&projectAreaItemId=_e0qYMgY_EeSirMpptqfvQA
This service provides the information of each of the workitem attributes.
It includes whether the workitem attribute is queryable.

I'm going to use this coding as a reference.
Ralph Schoon selected this answer as the correct answer

Your answer


Register or to post your answer.