[RTC] Is there a way to create a setValue scritpt for a contributor list?
Is there a way to create a setValue scritpt for a contributor list?
I want to narrow down to logged-in user as selection candidates
This script does not change the list
===============================================================
dojo.provide("com.panasonic.jp.workitem.scripts.common.contributor_mine");
dojo.require("com.ibm.team.workitem.api.common.WorkItemAttributes");
dojo.require("com.ibm.team.repository.web.client.session.Session");
(function() {
var WorkItemAttributes= com.ibm.team.workitem.api.common.WorkItemAttributes;
var getAuthenticatedContributor = com.ibm.team.repository.web.client.session.getAuthenticatedContributor;
dojo.declare("com.panasonic.jp.workitem.scripts.common.contributor_mine", null, {
getValueSet: function(attributeId, workItem, configuration) {
var loggedInUser = [];
loggedInUser.push(getAuthenticatedContributor().itemId); //user's uuid
return loggedInUser;
}
});
})();
===================================================================
One answer
See here:
Creating a Java-based value provider takes more work but is more powerful. Be sure to check the bottom of this wiki, which has some helpful hints. See "Providing new customizations implemented in Java"
https://jazz.net/wiki/bin/view/Main/AttributeCustomization#Value_sets
Mr Schoon also has great examples of this kind of customization, which helped me to create a working Java based attribute customization.
https://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/
Comments
I have never succeeded to return values for attribute list types in JavaScript. It has worked for me in Java. Ian provided the link already.
1 vote
Hi Ian
Thanks information
I've read this article, but I wasn't able to use "Attribute Csutomaization".
We believe that RTC systems will no longer be supported if created in Java.
We believe that risk-taking mechanisms should not be implemented.
It depends what you mean by "supported". Many customers (and most Enterprise customers) use Java-based extensions, and this is fully supported. What is not supported is debugging your extension code. So if you report a problem, IBM support will ask if you can reproduce the problem with your extension not being used. If it turns out the problem is in your extension code, IBM support will ask you to provide a short snippet of your code that reproduces the problem, and they will investigate the behavior of that snippet.
1 vote
Clemm,Ralph Thanks!!
Here's what we think about support:.
・Support for the introduction of plug-ins created using the RTC Java-SDK, as well as the upgrade and defect support of the installed RTC server will not be included.
I have no experience developing plug-ins using the Java SDK, so I don't have a way to solve development risks.
If you don't receive official support for plugin development, I will give up on this issue.