How to get a Field name in RTC WorkItem using Java
Chandan M B (113●1●41●84)
| asked Apr 07 '15, 11:34 p.m.
edited Apr 09 '15, 2:34 a.m. by Ralph Schoon (63.4k●3●36●46)
Assume in Summary Field, user enters some text,
I can fetch the entered value using getHTMLSummary() But i need the field Name(Summary) in whcih field it is entered. Please let me know the code snippet for this. Also, is there any documentation for server side plugin developement other than Lab 1 to 6 PDF provided by IBM Regards Chandan |
Accepted answer
the accepted answer here provides a utility to dump the attribute values of workitems returned from a workitem query
https://jazz.net/forum/questions/94776/assertionfailedexception-problem-with-getting-the-values-of-attributes
this will show you the attribute names, and ID as well as value (for most attribute types)
Chandan M B selected this answer as the correct answer
|
2 other answers
Hi Chandan,
You can iterate over the custom attributes:
This two are good references about server side plugin developement:
Comments
Chandan M B
commented Apr 08 '15, 12:24 a.m.
Hi,
Chandan M B
commented Apr 08 '15, 12:37 a.m.
That the Summary field is not a custom attribute.
Tiago Moura
commented Apr 08 '15, 12:42 a.m.
Oh! Sorry... here is the code from the getItemFromHandle:
Chandan M B
commented Apr 08 '15, 3:02 a.m.
Actually,
|
Ralph Schoon (63.4k●3●36●46)
| answered Apr 09 '15, 2:54 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Internal attributes are treated similar to custom attributes. You can look up the ID of the attribute in the process configuration. There are also internal ID's for them which you can get using the code snippets above.
Also see https://rsjazz.wordpress.com/2015/02/27/a-rtc-workitem-command-line-version-2-2/ WorkItemTypeHelper class. List |
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.