How to specify queryable workitem attribute?
![](http://jazz.net/_images/myphoto/799dcf9e2554b3dce603c3e968f4d65e.jpg)
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?
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?
Accepted answer
![](http://jazz.net/_images/myphoto/799dcf9e2554b3dce603c3e968f4d65e.jpg)
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.
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.
Comments
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jul 07 '14, 4:38 a.m.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.