Need a customized code that flips the status of the workitem automatically
![]()
Hello All,
IBM informed that they do not support attribute customization. I want to automate flipping the status of the workitem form 'resolved' to 'closed' Can anyone help on the same? Regards, Neha Lourenco |
One answer
![]()
can u describe a little more, what you mean by 'automate'.
some time later, or when something else happens? one can write code to do all kinds of things.. Comments Sure Sam!!
![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
You can do that in a participant and you can find relevant code here: https://rsjazz.wordpress.com/2012/11/27/resolve-parent-if-all-children-are-resolved-participant/
sounds like you have an extra state that you don't intend to use. (resolved).
I find the approach questionable however. Why don't you get rid of one of the states? If this is automatic, one of the states is not needed and should be removed from the workflow.
Hello Ralph/Sam,
Can you send me the contents of this link below,
These are two different work item types which likely have different workflows. It makes no sense that work items change their state automatically after 2 days or so. You can do that e.g. using a plain Java API application that queries the work items and then changes their states, but it seems to be pointless. What is the gain of information if you change the state automatically?
on the 'after two days', you will have to write some kind of scheduled job to find workitems to be changed and then change them.. you can do the first with a standard query to get the list of workitems in state A that have been there for x time.
showing 5 of 8
show 3 more comments
|