Whats the best way of embedding images for use with calculated values on work items
The nice chaps at IBM, have created some sort of script that displays a diagram on each work item based on which state it's in and the possible routes along the work flow from there. This appears to be done by adding a special project area adding the images to that then using a URL to the diagram in that project area corresponding to the current state. Ideally these diagrams would be part of the process template, and as we have multiple disconnected networks wanting to use the same process the address to the images would be relative rather than explicit. Wonder if you can get the page you are on using Document.URL? Any advice on writing this script in a better way, seems like it could be improved - not done much java script? Relevant pieces of java script follow: -
|
One answer
Ralph Schoon (63.3k●3●36●46)
| answered Jul 02 '15, 5:22 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
As described in the workshop
Process Enactment Workshop for the Rational solution for Collaborative Lifecycle Management
this only works if the images are uploaded as attachments to a work item. Then the provider shows the images. We have not found another place where this works. It especially did not work if we had the images uploaded as process attachment. You could use Additional Script parameters to be able to use the same script with different URL's. Comments
Richard Good
commented Jul 02 '15, 5:33 a.m.
Thanks - looks like it's workshop day ;-) Sorry about that 8)
|
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.