Skip to content

Responsible ID not part of response for active stage of workflow campaign #42

Open
@spKavvadias

Description

We would like to get the responsible of a job at a certain active stage. However that doesn't seem to be possible, as by using the SDK function to get the job information:

job_info = workflow_client.job_info(
    job_id=id
)
pp.pprint(job_info)

We get back a response that looks like this:

{
....,
    "job_previous_stage": null,
    "job_active_stage": {
        "id": "841ed69a-3b14-4c06-ab87-7d97a082700a",
        "status": "Active",
        "position": 1.0
    },
    "job_next_stage": {
        "id": "9442b38f-7f47-48ce-a04b-037a6b29c99a",
        "status": "Idle",
        "position": 2.0,
        "responsibleID": null,
        "responsibleGroupID": null
    },
    "job_stages": [
        {
            "id": "841ed69a-3b14-4c06-ab87-7d97a082700a",
            "status": "Active",
            "position": 1.0
        },
        {
            "id": "9442b38f-7f47-48ce-a04b-037a6b29c99a",
            "status": "Idle",
            "position": 2.0
        },
        {
            "id": "1a57e079-770f-41e1-8686-763526a0174e",
            "status": "Idle",
            "position": 3.0
        }
    ]
....

As you can see it is only possible to get the ID of the responsible for the next stage. Is there a way to get the ID of the responsible of the current stage? So far we haven't found another way.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions