(SM) Support Tip: How to move change tickets to "Closure/Closed" phase by Restful API?
The requirement is:
To call Restful API to close a change if there is a transition available from a particular phase to Closure/Closed phase. If there is a transition available to abandoned phase and not Closure phase, then the change would be moved to abandoned phase. If a change phase has a transition to both abandoned phase as well as Closure phase, then the transition to Closure phase would be taken.
Steps to fulfill the requirement:
1> go to extaccess table
2> search with Service Name = "ChangeManagement"
3> add a line in "Allowed Actions" whose name is "closechange"
4> Define the action "closechange" in “extactions” table, with external Action ID = "ChM. closeChange"
5> above action is defined in ScriptLibrary with name "changeManagement" in function "closeChange"
6> with above action, you can define corresponding Restful API to do this action