Synchronize attributes only mentioned attribute
![]() Hi All, I have few doubts on "Synchronize Attributes" I have gone through link I have 4.0.5 client and 4.0.5 server 1. There are many slave project area how to update all work ticktes(closed and open) in all project area. 2. There are huge amount of data So I don't thing "Synchronize attribute" from query result will help. 3. there are 3-4 new attributes are added currently but I want to sync only one attribute. Thanks in advance. Kavita |
2 answers
![]()
Ralph Schoon (63.3k●3●36●46)
| answered Apr 11 '14, 4:22 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Kevita,
I think Abraham is right. Synchronize attributes will always add all new attributes. So you can't use that. But you can use the API to just add the one attribute you want. The API you can use is IWorkItem.addCustomAttribute. The code looks like: if (!workItem.hasCustomAttribute(customInteger) && fCreateAttributesIfMissing) { // If not defined in the process template it has to be // manually created workItem.addCustomAttribute(customInteger); } if (workItem.hasCustomAttribute(customInteger)) workItem.setValue(customInteger, fCustomInteger);You can use this in an operation similar to synchronize attributes in my blog post. Comments
Hi Ralph,
I don't see the wc.save operation.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.