How do I delete group permissions in Fisheye if AppLink won't let me add a body to a DELETE request?
Community moderators have prevented the ability to post new answers.
What API do you use, com.atlassian.applinks.api.ApplicationLinkRequestFactory#createRequest to create a request over application link? If so, you should be able to call https://docs.atlassian.com/sal-api/2.7.0/sal-api/apidocs/com/atlassian/sal/api/net/Request.html#setRequestBody(java.lang.String) on instantiated request object to specify the body.
Hope that helps
The linked javadoc says it's only valid for POST and PUT. It's not lying either. If you try to use it for DELETE it throws an exception.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Apologies, I missed that bit, I wasn't aware of this limitation of Application Links. I've raised a bug https://jira.atlassian.com/browse/FE-6654 to get this improved, I'm afraid I can't think of any simple workaround for now, other than implementing own FishEye plugin that would expose the REST endpoints you need and that would consume Java API internally.
Hope that helps,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the mean time what I did was PUT allowLoggedIn:true and then PUT allowLoggedIn:false. This resets all permitted groups and then I performed a POST for each group I wanted to permit.
It's a very chatty solution. It'd be nice to be able to send a list to set them all at once.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks, I've added your solution as workaround to FE-6654 issue.
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.