Search found 9 matches

by kevin1119
Wed Jan 23, 2019 8:05 am
Forum: Polarion Application Lifecycle Management (ALM)
Topic: set assigne field
Replies: 4
Views: 112

Re: set assigne field

thanks for your help, i got it to work using this approach

var enumOption = orkitem.getCustomField("fieldName");;
workitem.addAssignee(projectService.getUser(enumOption.getId()));
by kevin1119
Wed Jan 23, 2019 6:43 am
Forum: Polarion Application Lifecycle Management (ALM)
Topic: set assigne field
Replies: 4
Views: 112

Re: set assigne field

thanks micdal for suggestion
im trying to copy a user from a custom field of type list ENUM/USER to assignee
i know i have to convert string value to IUser but don't know how to instantiate IUser. can you help?
by kevin1119
Wed Jan 23, 2019 5:42 am
Forum: Polarion Application Lifecycle Management (ALM)
Topic: set assigne field
Replies: 4
Views: 112

set assigne field

hi all, i'm pretty newbee to scripting in Polarion as i understand, assignee field is an out of the box Polarion field; not a custom field. in javascript, i try to set it by calling workitem.setvalue("assignee","my name"); i get this error "List field can never be set" ...
by kevin1119
Fri Jun 01, 2018 5:13 pm
Forum: Polarion Application Lifecycle Management (ALM)
Topic: adding a list of users to global role
Replies: 1
Views: 1129

adding a list of users to global role

hi, i have a list of ids that i want to add to a global roles. it's painful to manually do it 1 by 1.

in the wiki script, i'm following securityService api to retrieve the target context role, but i don't see any method that returns context role. please help

thanks and regards
by kevin1119
Sun Mar 25, 2018 4:18 am
Forum: Polarion Application Lifecycle Management (ALM)
Topic: remove roles from user via SDK
Replies: 7
Views: 2054

Re: remove roles from user via SDK

hi Patrick i'm new to Polarion and trying to import the servlet exmple into eclipse. for the sake of not missing any thing, i imported it and added the following jars to class path platform-persistence.jar platform.jar projects.jar tracker.jar util.jar that resolved all errors in the java file. but ...
by kevin1119
Fri Mar 23, 2018 1:17 am
Forum: Polarion Application Lifecycle Management (ALM)
Topic: import servlet example
Replies: 0
Views: 1263

import servlet example

hi i'm new to Polarion and trying to import the servlet exmple into eclipse. for the sake of not missing any thing, i imported it and added the following jars to class path platform-persistence.jar platform.jar projects.jar tracker.jar util.jar that resolved all errors in the java file. but the plug...
by kevin1119
Wed Mar 21, 2018 11:51 pm
Forum: Polarion Application Lifecycle Management (ALM)
Topic: remove roles from user via SDK
Replies: 7
Views: 2054

Re: remove roles from user via SDK

thanks Patrick and Almighty for providing some light in the tunnel

i'm trying to find out which lib contains those classes but no lucks.
by kevin1119
Wed Mar 21, 2018 12:23 am
Forum: Polarion Application Lifecycle Management (ALM)
Topic: remove roles from user via SDK
Replies: 7
Views: 2054

Re: remove roles from user via SDK

thanks Almighty

that update method only applies to email/description. it can't even change user id.
it's a pain to update hundred of users manually
by kevin1119
Tue Mar 20, 2018 3:34 am
Forum: Polarion Application Lifecycle Management (ALM)
Topic: remove roles from user via SDK
Replies: 7
Views: 2054

remove roles from user via SDK

hi all

i'm trying to remove roles from user account via Java SDK, but not able to find available methods in SecurityWebService, ProjectWebService or SessionWebService to do it

is there any other way to do it?

thanks and regards
Kevin

Go to advanced search