I am writing a Bamboo plugin. The PlanKey get the I get from the context "public boolean shouldDisplay(Map<String, Object> context)" is TPRO1-TPLAN1-JOB1.
PlanKey planKey = PlanKeys.getPlanKey((String) context.get("planKey"));
why does it have the job id appended to it?
Should it not only be the plan key i.e TPRO1-TPLAN1?
You can have multiple jobs within the same plan. And each job can run in parallel, acting as if they are different mini-plans. Most of the time, you will need the job id as well when you automate something, if it has to work in all scenarios.
If I remember correctly, PlanKeys has other methods to retrieve different parts of the full key.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.