Expand my Community achievements bar.

SOLVED

Change Approver Name using Fusion

Avatar

Level 3

Hello,

 

Is it possible through fusion to automate the assignment of an "Approver" for task-level approval workflows in converted projects?  “Issue entry creator (Converted issue originator)” should be the approver.

 

 

1 Accepted Solution

Avatar

Correct answer by
Employee

Yes! You should be able to do this via Fusion. First, you would need to pull in the ID of that Requestor and then add it to the Approval Process creation module as shown below: 

 

Approval Process Module: 

JamesRitter_0-1754933685108.png

{
  "approvalProcess": {
    "ID": null,
    "approvalObjCode": "TASK",
    "name": "",
    "isActive": true,
    "isPrivate": true,
    "approvalPaths": [
      {
        "ID": "k10B5lJI0Il5JEZAbG00U",
        "targetStatus": "INP",
        "shouldCreateIssue": false,
        "rejectedStatus": "$$PREV",
        "objCode": "ARVPTH",
        "approvalSteps": [
          {
            "ID": "5E4spdpQ8FAqV3I6F1qtK",
            "approvalType": "OM",
            "sequenceNumber": 0,
            "objCode": "ARVSTP",
            "stepApprovers": [
              {
                "objCode": "SPAPVR",
                "user": {
                  "ID": "INSERT THE ID OF THE REQUESTOR HERE",
                  "objCode": "USER"
                },
                "userID": "INSERT THE ID OF THE REQUESTOR HERE",
                "ID": "INSERT THE ID OF THE REQUESTOR HERE",
                "approvalStepID": "5E4spdpQ8FAqV3I6F1qtK"
              }
            ],
            "name": "Test-Stage-1"
          }
        ]
      }
    ],
    "objCode": "TASK",
    "description": ""
  }
}

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

Yes! You should be able to do this via Fusion. First, you would need to pull in the ID of that Requestor and then add it to the Approval Process creation module as shown below: 

 

Approval Process Module: 

JamesRitter_0-1754933685108.png

{
  "approvalProcess": {
    "ID": null,
    "approvalObjCode": "TASK",
    "name": "",
    "isActive": true,
    "isPrivate": true,
    "approvalPaths": [
      {
        "ID": "k10B5lJI0Il5JEZAbG00U",
        "targetStatus": "INP",
        "shouldCreateIssue": false,
        "rejectedStatus": "$$PREV",
        "objCode": "ARVPTH",
        "approvalSteps": [
          {
            "ID": "5E4spdpQ8FAqV3I6F1qtK",
            "approvalType": "OM",
            "sequenceNumber": 0,
            "objCode": "ARVSTP",
            "stepApprovers": [
              {
                "objCode": "SPAPVR",
                "user": {
                  "ID": "INSERT THE ID OF THE REQUESTOR HERE",
                  "objCode": "USER"
                },
                "userID": "INSERT THE ID OF THE REQUESTOR HERE",
                "ID": "INSERT THE ID OF THE REQUESTOR HERE",
                "approvalStepID": "5E4spdpQ8FAqV3I6F1qtK"
              }
            ],
            "name": "Test-Stage-1"
          }
        ]
      }
    ],
    "objCode": "TASK",
    "description": ""
  }
}