Skip to main content
5-Regular Member
September 30, 2025
Solved

Formula to Fetch Item ID from Default Working Set in Codebeamer

  • September 30, 2025
  • 1 reply
  • 313 views

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.

Best answer by Istvan_Molnar

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

1 reply

12-Amethyst
October 1, 2025

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