Hello team,
I want to get the tag provider against a project name. Not getting from default tag provider tag.
consider i am in project 1, from there i want to get the project 2 's tag provider.
is there any possible to get the tag provider.
please support me on this.
thanks in advance!!
Tag providers are not project resources, so you'll need to describe what you need in more details.
Hello @pascal.fragnoud ,
Thank you for your reply.
Consider,
project name 1 - Test_1
project name 1 tag provider - default
project name 2 - Test_2
Now i want to fetch the tag provider of Test_1 from Test_2.
So you mean the tag provider that's configured as the default tag provider for a specific project ?
I don't think you can do that.
Why do you need that ? What are you trying to do ?
pturmel
February 19, 2025, 1:23pm
5
You can do that with SDK api calls, in gateway scope only, to the gateway's project manager.
(Utterly unsupported.)
Start here:
GatewayContext.getProjectManager()
(I recommend using my Integration Toolkit module's system.util.toolkitCtx()
function to obtain the gateway context.)
3 Likes
Why not just create tags that hold the name of the project's tag provider?
Any time you need to know, just read the tag of interest.
pturmel
February 19, 2025, 3:10pm
7
How will you make sure that stays correct? Which provider will you put those in?
I'd place those in default.
The tag provider for a project should be very static.
I'm assuming the need for project 1 to know the tag provider for project 2 is to build tag strings
"[%s]tagName" %proj2TagProvider
The Dev Team will need to know how to use those tags and to not mess with the values.
edit: obviously I didn't put them in default in my example screen grab; just made a quick-n-dirty example.