Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

[closed] How to add multiple users name in contributor type attribute using RTC server side api

 There is a demand to add users in custom contributor attribute type based team area, I have fetch the users UUIDs from team area but how to add those users into custom contributor type attribute.

Please suggest.

0 votes

Comments

Please tag the question with an appropriate product tag and a version for good measures. Also provide more details about what this is all about and what API you are currently using.

 


The question has been closed for the following reason: "Duplicate Question" by rschoon Nov 18 '21, 2:21 a.m.


2 answers

Permanent link

I suggest looking at https://jazz.net/wiki/bin/view/Main/DraftTeamProcessRestApi.
That's the documentation for the REST APIs for project areas and team areas.

0 votes

Comments

 Thanks David, I will definitely try it with Rest, and get back here with result.


Permanent link

 As of my interpretation of your question, you should consider reading this post: https://rsjazz.wordpress.com/2013/01/02/working-with-work-item-attributes/


You can only set one contributor in a contributor type attribute. You have to use an attribute of type contributorList if you want to maintain more contributors in an attribute.

0 votes

Comments

 Hi Ralph, I want to show users into the contributor dropdown using server side api

 Hi Ralph, I wrote script to push users name into contributor attribute, but it is not working, please suggest, how to push users into  attribute


dojo.provide("com.example.ValueSetProvider11");

(function() {
    dojo.declare("com.example.ValueSetProvider11", null, {
        getValueSet: function(attributeId, workItem, configuration) {
       
            var result= [];
            result.push("_SsBF4DZuEeypp4-L1XAmrg");
            result.push("_hKXl0DZuEeypp4-L1XAmrg");
            return result;         
        }
   });
})();

This is not any server API, this is a JavaScript based value set provider.

Does not work is not any actionable information.

I created such a value set for myself and it works. 

1 vote

 yes Ralph you are right I was trying with dojo, but above scenario is only possible with server/rest APIs only ? please give me confirmation, based on that I will move further

The description of what you want to actually do, is not understandable. It is unclear if you want to provide a value set to set a contributor attribute or want to set a contributorList attribute or what you actually want to achieve. I am not going to continue to spend time helping with APIs and their usage when it takes longer to get the use case described by asking 20 follow up questions, because the original question is one minimal sentence with little to no valuable information.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 11,078

Question asked: Nov 12 '21, 10:42 a.m.

Question was seen: 1,059 times

Last updated: Nov 18 '21, 6:41 a.m.

Confirmation Cancel Confirm