Community moderators have prevented the ability to post new answers.
I am trying to do something similar, call a web service from a MultiStringCFType.
To fix the ClassNotFound Exception errors I added the following dependecies in the pom:
<dependency> <groupId>com.atlassian.jira</groupId> <artifactId>jira-rest-plugin</artifactId> <version>${jira.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.atlassian.jira</groupId> <artifactId>jira-rest-api</artifactId> <version>5.2</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.atlassian.plugins.rest</groupId> <artifactId>atlassian-rest-common</artifactId> <version>1.0.2</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.ws.rs</groupId> <artifactId>jsr311-api</artifactId> <version>1.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.sun.jersey</groupId> <artifactId>jersey-client</artifactId> <version>${jersey.client.version}</version> </dependency>
The problem I have now is that I am getting a ClientHandlerException: A message body reader for Java type, class java.lang.String, and MIME media type, application/json;charset=UTF-8, was not found
I get this when calling the web service from the custom field.
If I call the same jersey code from a rest service, it works. I created a question for my error here: https://answers.atlassian.com/questions/180499/calling-jira-rest-service-from-multistringcftype
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.