Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
spKavvadias opened this issue Feb 6, 2024 · 0 comments

Comments

@spKavvadias
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant