RTC 6.0 :How to get custom attribute sections value of a workIteam through RTC java API
is it possible to get particular section value of a custom attribute in a work Item ?
|
2 answers
Hi, with plain API is possible to obtain any attribute value of a work item. What do you mean with "section value"?
Anyway take a look to this link to start developing extensions. |
Hi Michele,
Thank you for quick response. Naveen was talking about how can we identify the particular attribute is present in particular tab(for example/Overview tab) Or let me put it different way, I have workitem UI(say Defect workitem) which contains different tabs(Overview, links,Approval, and some custom tab(X)). How Can I know which attributes are present in Custom tab(X). I want to list down all the attributes under Custom tab(X) Thank you in Advance. Comments
Michele Pegoraro
commented Dec 10 '15, 6:06 a.m.
Ok, I did not understand. In order to find out what you want you have to inquiry the process configuration, not the work item itself. I've never use API to retrieve editor configuration and I'm not sure they exist. But it is possible to get the entire process configuration source, which is an xml file. from there, you can get the section that belongs to a tab and, from the section, the presentation.
Michele Pegoraro
commented Dec 10 '15, 6:09 a.m.
Like in this example:
Nilesh Patil
commented Dec 10 '15, 6:43 a.m.
Hi Michele,
1
Kevin Ramer
commented Dec 10 '15, 12:22 p.m.
What happens if the presentation is changed ? Unless the project is pretty tightly locked down, this is a real possibility. My take is that your target(s) should be the attributes themselves, not where they sit on a potentially mutable presentation. Rather like US vs UK automobiles; the drivers seat are on opposite sides, but both have all the same doo-dads.
Ralph Schoon
commented Dec 10 '15, 12:43 p.m.
| edited Dec 10 '15, 12:48 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
As far as I can tell, the server API should not care for if an editor presentation is available for an attribute or not. It should check for hasAttribute() and if the attribute is there it should work with it. The server does and should not care if there is an editor presentation, that would be bad design. You can also set attributes that have no editor presentation in e.g. work item queries.
|
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.