Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Added on October 8, 2024 1:46PM
Likes: 0
Replies: 0
I am trying to a create a logic to validate the governance approval for a particular bundle of a project.
Input params: PROJECT_KEY, BUNDLE_ID
The python code should be able to validate the governance approval status and provide the result as approved, pending , rejected,etc.
I am trying to use the new_artifact_search_request method to filter out the exact bundle but in vain.
results = gc.new_artifact_search_request(GovernArtifactSearchQuery( artifact_filters=[ GovernArtifactFilterArchivedStatus(is_archived=False), GovernArtifactFilterBlueprints(blueprint_ids=['bp.system.project_deployer_deployment']), GovernArtifactFilterFieldValue(condition_type='EQUALS', condition=bundle_id, field_id='bundle_id'), GovernArtifactFilterFieldValue(condition_type='EQUALS', condition=project_key, field_id='project_key'), ])