- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2019 08:29 PM
My requirement is that if at any approver rejects the Change Request, the state should become 'Closed' instead of 'New'. I tried it using workflow but not able to achieved.............
if an approver rejects the change request it should be closed with a comment because of approvers rejection it is closed
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2019 04:45 AM
Hi,
Here is how you can do this. I checked in my PDI and its working fine.
After reject notification, in your WF, add run script activity.
In run script, add the following code.
current.setWorkflow(false); //This will disable the BR that is restring the state move.
current.close_notes = "rejected";
current.close_code = "unsuccessful";
current.state = 3;
Connect Reject notification -> Run script -> End.
Mark the comment as a correct answer and also helpful once worked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2019 02:58 AM
hi asifnoor,
as this is organizational stuff so i cannot share details however i can share the screen shots....from which you can modify it
thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2019 03:58 AM
Okay.. kindly share the following information.
Create a new CR.
open the CR and click on show workflow link. Then share the screenshot of that. this will tell us which WFs are running on that CR.
That share me the WF screenshot of the CR.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2019 09:29 PM
hi asifnoor,
thanks for your help ....i will share step by step about requirements:
so when you create a new change request it shows refer below screenshot
so when you request for approval it goes to state assess and if approver reject the change request it makes the state new
workflow screenshot:
now my requirement is that if approver reject the change request it should goto closed state with
close code : unsuccessful
close notes: as change request go rejected this is getting closed incomplete
if anything else required please tell me....
thanks in advance

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2019 09:39 PM
The description of your 'set value' activity says "Set state to New and approval to rejected". What values are you actually setting in this activity?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2019 12:20 AM
hi moy
if you this through wf it wont work