A

Tuesday, February 28th, 2023 12:41 PM

Finds tags for an asset

I am trying to find assets for a given asset Uuid via Script task within a workflow

import com.collibra.dgc.core.api.component.tag.TagApi
def KPITags = TagApi.getTagsByAssetId(asset.getId())

However I got an error

No signature of method: static com.collibra.dgc.core.api.component.tag.TagApi.getTagsByAssetId() is applicable for argument types: (UUID) values: [49fb0bbd-388d-4cac-b7aa-42f17524698c]

13 Messages

2 years ago

Drop the import statement as TagApi is already instantiated and available via tagApi variable.
You script then should be just
def KPITags = tagApi.getTagsByAssetId(asset.getId())

2 years ago

Hey… Thanks for the help. Issue is resolved now :+1:

Loading...