How can I make a field unique in RTC?
I want to make one field unique in a workitem so that if a second workitem is created with the same value in that field it should not allow to save.
|
2 answers
Ralph Schoon (63.4k●3●36●46)
| answered Jun 13 '14, 6:56 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I am not sure you can do that easily.
One Idea that comes to mind is, you could create an advisor (extension work item save), that runs e.g. a query and checks if there is a work item with the same value in the attribute and prevents saving if so. However, there are performance implications. What would be the use of this? |
What are you trying to achieve and what type of value are you trying to store in this unique field? Where does this value come from?
Comments
Lipi Das
commented Jun 16 '14, 12:48 p.m.
This is a alphanumeric field which should not be duplicated.
I want to make one field unique in a workitem so that if a second workitem is created with the same value in that field it should not allow to save the workitem.
<o:p> </o:p>
As already mentioned above you could create a work item advisor. As an example see https://rsjazz.wordpress.com/2014/05/26/only-owner-can-close-workitem-advisor/ . This would check (e.g. using a query) to look if the value is already used.
|
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.