Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
I am working on a computed field in Codebeamer and need to fetch the item ID from the Default Working Set using a formula.
I have tried a few approaches (like this.id, this.globalId, and filtering workingSets()), but they are not returning the expected result. My goal is specifically to retrieve the item ID that corresponds to the Default Working Set.
Could you please share the correct formula or suggest the right way to achieve this?
Thanks in advance for your support.
Hello,
You can use something like the following:
this.getBranch().workingSet.name == null ? this.id : null
The above formula works fine in trackers that are Shared trackers in the Working Set(s).
However, if you do not want a result like "--" in a Non-Shared tracker of a Working Set, then you may want to use something similar to the following:
this.getBranch().workingSet.name == null ?
concat("Item ID in the Default Working Set: ", this.id) :
concat("Item ID in the ", this.getBranch().workingSet.name, " Working Set: ", this.id)
Hope this information is helpful.
Best Regards,
Istvan