Product code and work item displayed as a single field
Any thoughts appreciated!
Accepted answer
Comments
Eric,
I want to use ID and either an abbreviated version of Filed Against (Category), or a value from an enumeration, or perhaps codes that I would have stored in the JS provider.
Are you aware of any work item manipulations that would not trigger the javascript to run? If not, that seems like a good way to solve this. I would populate a custom field with a combination of work item ID and code based on the Filed Against field. Users would then include this custom field in their query as their preferred method of seeing ticket numbers.
For example do work item imports, command line work item creates/updates, and source code changeset delivers all run associated JS providers?
Vince,
One other answer
Comments
Hello Ralph,
Hi Eric,
I tried to summarize what https://jazz.net/library/article/1003/#customattributes says and what I experienced while creating the Process Enactment Workshop Lab 5 and other assets in https://jazz.net/library/article/1093 Lab5 (the first sections).
Basically there are a lot of limitations if you want to work on item type attributes in JavaScript. You can get the value and the name and it will provide with a uuid and maybe some displayable data (maybe the summary and the work item IF for a work item type attribute, so maybe you get what you want.) I am not really sure, what you'd get for a work item attribute. You can not follow links etc. JavaScript is just very limited. You can try to use it, but it might not provide what is needed. Java providers are a lot more flexible and can access a lot more data than in JavaScript.
Thank you Ralph and Eric!
It looks like I am able to deliver the kind of field my users are looking for with javascript. Thank you both!
Glad we could help, Vince.