How to: find state of the wi referenced by URI reference
![]()
Hello,
I'm trying to find a state of the defect referenced from task by 'Affected By' link. The reference is URI reference and I failed to find a way how I could find the state using URI or stateid of the defect. Any ideas? |
Accepted answer
![]()
Ralph Schoon (61.5k●3●36●43)
| answered Oct 20 '12, 3:47 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Please look at http://rsjazz.wordpress.com/2012/10/20/following-calm-links-using-the-java-client-or-server-api/ for the server and the client API.
Timur Markunin selected this answer as the correct answer
|
2 other answers
![]()
Ralph Schoon (61.5k●3●36●43)
| answered Oct 17 '12, 5:34 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
We discussed this and the link Timur is referring to is a CALM link. He will get an URi for it. So he will have to use some OSLC or REST interface to access the link target.
Comments Hi Ralph,
|
![]()
Ralph Schoon (61.5k●3●36●43)
| answered Oct 18 '12, 7:22 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Oct 18 '12, 8:30 a.m.
Timur,
the stateID is a historical or current state of the work item and not the work item workflow state. I looked deeper in the SDK and found something that works for me in a test environment. See http://rsjazz.wordpress.com/2012/09/19/the-rtc-workitem-link-api-linking-workitems-to-other-elements/ the last operation. It is marked with *Update*. Comments Sorry, Ralph. I failed to find Update. Are you talking about
Sorry, wrong URL, not sure how that happened. Use http://rsjazz.wordpress.com/2012/09/19/the-rtc-workitem-link-api-linking-workitems-to-other-elements/ search for Update.
Thanks Ralph!
![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
That is client code. But when the client can do it, the server should too. Have you tried to use for references where the location is used as parameter in calls? Try to find the Service that is analog to the Client Library.
It looks it doesn't work for me cause
![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Timur,
showing 5 of 6
show 1 more comments
|