cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Translate the entire conversation x

Formula to Fetch Item ID from Default Working Set in Codebeamer

SH_12705142
5-Regular Member

Formula to Fetch Item ID from Default Working Set in Codebeamer

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.

ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

1 REPLY 1

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

Announcements


Top Tags