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

Limiting access based on work items type

Is there any way in EWM to provide access to only certain type of work items? We have 2 types of users in EWM - internal and external. We want internal users to see all work items in the project area whereas external employees should be able to see only only one type of workitem (ex. Requirement). Is this possible to achieve this in EWM?

0 votes



One answer

Permanent link
  1. Create a team area named "Internal User" to add internal users to this team area.
    1. Add Category named "Internal User", and associate team "Internal User" and  click the checkbox "Restrict Work Item Access"
    3. In your "Internal Work Item", add a attribute type of "Category".
    4. Add a script so that when you create an "internal workitem type", the category attribute is set automatically.

    dojo.provide("com.SecurityLevel.ValueProvider");
    (function() {
        dojo.declare("com.SecurityLevel.ValueProvider", null, {
            getValue: function(attribute, workItem, configuration) {
                 var workitem_type = workitem.getValue("workItemType")
                if (workitem_type  === "Your Internal Workitem Type ID"){
                    return "_NP31QdedEe6HPtzjzaR8jQ";   // This is your "Internal User" Category ID.
                }
                else{
    return workItem.getValue(attribute);
        }
            }
        });
    })();

1 vote

Your answer

Register or log in to post 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.

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
× 12,099

Question asked: Mar 14, 12:29 p.m.

Question was seen: 742 times

Last updated: Mar 16, 12:05 p.m.

Confirmation Cancel Confirm