16 Messages
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]
young
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())
0
0
abhishekchand_raja
16 Messages
2 years ago
Hey… Thanks for the help. Issue is resolved now
0
0