WorkItem changing status
Hi, I'm trying to change a WorkItem status using a client side follow-up plugin. I get the working copy, set the action and save but no action seems to be triggered. I also try insert another modify action like modifing the description and it runs correctly.
This is my code:
I also get the status result of save operation and it gives me OK. Can I have some help? What is my error? Thanks. |
Accepted answer
Ralph Schoon (63.5k●3●36●46)
| answered Jun 27 '18, 9:42 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER This shows a state change in a server follow up action: https://rsjazz.wordpress.com/2012/11/27/resolve-parent-if-all-children-are-resolved-participant/ the code in the client should be similar. There are several client API examples on the blog.
Ralph Schoon selected this answer as the correct answer
|
4 other answers
I've notice that it currently does something, because if I try to set action Resolve from In Progress status (referring to Eclipse Way Default workflow) it moves work item state to New instead of Resolved.
Any help? |
Hi
You have to pass the id of an action to the workingcopy. To get the set of possible action ids for the current state of a work item, you can use IWorkItemClient#findWorkflowInfo and then WorkflowInfo#getActionIds. Passing one of these ids to the workingcopy should transition the workflow the to end state of that action (which can be accessed programatically using WorklfowInfo#getActionResultState. Regards Marcel Jazz Work Item team |
Hi Marcel, thank you for your answer.
Really, I would have never thought that String as input parameter of getWorkflowAction method was a conversion from Id. I really had not understood. Thank you very much. |
Hi Michele,
Am in-between the process of creating custom workitem which will start build when it's staus will change, I have used java client API programs to request Build,Am able to do this by running as java application. But am not sure how to use this in workitem, how to create an custom workitem to invoke it. could you please help me to sort out.
|
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.