Script needed to add an approver
I am attempting to get a script to add a specific email to only 1 level of approval. When looking online all the examples give multi-tier approval. I am below new when it comes to scripting so I am hoping for some help. Here is what I have so far.
Custom Trigger:
When Subject = Create Server for Tier 2
Run script: python approver.py $COMPLETE_JSON_FILE
SETTING APPROVALS FOR DIFFERENT STAGES:
{
"operation": [
{
"INPUT_DATA": [
{
"StageOne": [
]
},
],
"OPERATIONNAME": "ADD_APPROVAL_STAGE"
}
],
"message": "Sample Python script for adding approvers",
"result": "success"
}
SETTING APPROVALS FOR THE CURRENT STAGE:
{
"operation": [
{
"INPUT_DATA": [
],
"OPERATIONNAME": "ADD_APPROVAL"
}
],
"message": "Sample Python script for adding approvals in current stage",
"result": "success"
}