GET multiple values in a search request

2019-09-01 05:30发布

I am using the AtTask API to do some custom reporting and I would like to get back more than one of a particular parameter. For example, in the documentation it states:

GET /attask/api/project/search?status=CUR

Is there a way to also get back APP, PLN, etc? i.e. I'd like to do one call and get back all projects with a particular set of statuses. I've tried:

status={CUR,APP,PLN}
status=CUR,APP,PLN
status=CUR&status=APP&status=PLN

So far none of those have returned the dataset. Thank you!

标签: attask
1条回答
我想做一个坏孩纸
2楼-- · 2019-09-01 06:03

Your last attempt is the closest. You just need to add status_Mod=in, so your statement would be:

GET /attask/api/project/search?status=CUR&status=APP&status=PLN&status_Mod=in
查看更多
登录 后发表回答