Official comment
Hi Avinash,
Could you please clarify what makes a project belong to Alpha or Beta group? Is group a custom field on the project? Is it something else?
Thank you,
Roland
I'm trying to automate a report using Clarizen API. I'm new to this Clarizen API and CZQL, can you please help with the CZQL to get the project id for the projects in Active state and in groups Alpha, Beta
I've been using the below CZQL to get the Active project, but couldn't figure out how to filter the only projects in Alpha and Beta groups
POST https://api2.clarizen.com/v2.0/services/data/query
{
"q" : "SELECT Name, sysid, state.name From Project Where state = 'Active'"
}
Hi Avinash,
Could you please clarify what makes a project belong to Alpha or Beta group? Is group a custom field on the project? Is it something else?
Thank you,
Roland
Please sign in to leave a comment.
Hi Roland,
Thanks for your response. Group is a custom field in project. We're using it to filter the active projects in this two groups as shown in the attached screenshot.
Please let me know if need any further information.
Regards,
Avinash
Hi Avinash,
If the API name of the Group field is C_Group, then please try the following query:
SELECT Name, sysid, state.name From Project Where state = 'Active' AND (C_Group='RBG' OR C_Group='RFG')
I hope this helps.
Roland
Thanks Roland, I got right Group name from my admin and your query worked. Thanks a lot!