Skip to content

Help with AdvancedSearch #5

@mbatesole

Description

@mbatesole

I'm stuck on trying to filter allCards and wondering if you can provide an example of usage. Specifically I'm trying to filter by current_phase_age > 1 AND current_phase name equal to "some_name", but I'm really stuck.

print(pipefy.allCards(pipe_id, filter='{field: "current_phase_age", operator: gt, value: 1}'))

returns:

pipefy.PipefyException: Argument 'value' on InputObject 'AdvancedSearch' has an invalid value (1). Expected type 'String'.

It seems like the card field is an Int, but the AdvancedSearch is expecting a String. So, no problem, let's put quotes around our int:

print(pipefy.allCards(pipe_id, filter='{field: "current_phase_age", operator: gt, value: "1"}'))

returns:

pipefy.PipefyException: Something went wrong

I'm obviously not understanding something. And, as far as filtering on the phase name, I'm at a complete loss. I'd really appreciate any examples or direction you could give me.

Thanks so much!!

Metadata

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