Changing the Stages

rburgering
Kilo Contributor

Hi,

In the Service Catalog - Request Items a 'Stage' field is available. This stage field is used to represent the Workflow. This Workflow seems always to start with 'Waiting for Approval' , even if no approval was necessary or if an approval is still to come (on task level).

What I would like to do: replace 'Waiting for approval' for 'Submitted'.

What I did:
- Changed the message in System UI (no luck);
- Changed the Choice option for the stage field (no luck).

Anyone any idea on how to target this?

Thanks!

13 REPLIES 13

For workflow, look at these lines in the same rule


if (current.approval == 'not requested') {
c = answer.add('waiting_for_approval', gs.getMessage("Waiting for Request Approval"));
c.setImage("images/workflow_requested.gifx");

} else if (current.approval == 'requested') {
c = answer.add('request_approved', gs.getMessage("Request Approved"));
c.setImage("images/workflow_approved.gifx");

} else if (current.approval == 'approved') {
c = answer.add('approved', gs.getMessage("Approved"));
c.setImage("images/workflow_approved.gifx");

} else if (current.approval == 'rejected') {
c = answer.add("rejected", gs.getMessage("Request Rejected"));
c.setImage("images/workflow_approval_rejected.gifx");

} else if (isRejected) {
c = answer.add("rejected", gs.getMessage("Rejected"));
c.setImage("images/workflow_approval_rejected.gifx");
}


I'm sorry Paul, but I do not see that code in the rule. It's not present in our system, nor in /demo......

What business rule are you referring to?


Sorry, I assumed you activated the workflow plugin. I just tested in /demo and commenting out that line should still work


// answer.add("waiting_for_approval", gs.getMessage("Waiting for Approval")); // always add this


Commenting out that line is removing the step from the list. That's not what we want.

I want the message 'Approved' to change to 'Submitted'. Now, trying to change the 'waiting for approval' message, we effectively change the wrong entry. Once a Request is approved, the first stage in the list is 'Approved' and it is not controlled with the business rule mentioned before........