I want to remove groups in Users role in a given project using api call . How can i do that? I can remove all the groups and users using
jiraSoapService.removeAllRoleActorsByProject(authToken,remoteProject);
But i want to remove only groups of Role - Users how can i do that?
Thanks
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What did you use as actorType? What's the error message exactly?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, it sounds like you need to remove actors from a project role?
removeActorsFromProjectRole(java.lang.String token, java.lang.String[] actors, RemoteProjectRole projectRole, RemoteProject project, java.lang.String actorType)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I try this. before i post this qustion. But thing i want to do is remove the group all the people are in. Not one by one
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, can you clarify what you mean and require? That function can remove an actor (group) from a particular project role.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This the group i want to remove( Red circled one) . How to remove only that group
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, this is an actor called support in the project role User. The actor type is a group.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This the group i want to remove( Red circled one) . How to remove only that group
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This the group i want to remove( Red circled one) . How to remove only that group
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This the group i want to remove( Red circled one) . How to remove only that group
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok i know it. But how can i write api call to remove this group? Becuse is a group of users.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please use the function I provided in the original answer. If you face any errors or issues let us know what they are.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
removeActorsFromProjectRole(java.lang.String token, java.lang.String[] actors, RemoteProjectRole projectRole, RemoteProject project, java.lang.String actorType)
But this required java.lang.String[] actors - but i only the group name not the users in the group
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, an actor can be a group? Do you still have issues?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yep still i have the problem
RemoteProjectRole remoteProjectRole = jiraSoapService.getProjectRole(authToken,id);
String[] user = new String[1];
user[0]= "support";
jiraSoapService.removeActorsFromProjectRole(authToken, user,remoteProjectRole,remoteProject,"group") ;
This is end up with an error. why is that
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you please attach a log and/or describe what the error is? You should be able to get some axis logs from the soap error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is the error message
Exception in thread "main" AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.IllegalArgumentException: Type group is not a registered RoleActor implementation
faultActor:
faultNode:
faultDetail:
{}faultData:null
{http://xml.apache.org/axis/}hostname:****
java.lang.IllegalArgumentException: Type group is not a registered RoleActor implementation
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2938)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
actorType
- is a type that defines the type of role actor to instantiate (ex./ UserRoleActor.TYPE, GroupRoleActor.TYPE)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Still have same error
String[] user = new String[1];
user[0]= "********";
jiraSoapService.removeActorsFromProjectRole(authToken,user,remoteProjectRole,remoteProject,"GroupRoleActor.Users");
Also i tried by puting these types as actor Type also : "GroupRoleActor.TYPE","UserRoleActor.TYPE","UserRoleActor.groups","GroupRoleActor.group"
but all end up with an error
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.