I have been trying to consume some data like project name etc from json using "JIRA REST API module" but I did not find any documentation to do so.
Although, there is documentation for "JIRA REST Client Wrappers" on J-tricks which use user authentication but how can I use the "JIRA REST API module" to consume data from json?
The "JIRA REST API module" creates two files inside the plugin i.e. MyResource.java and MyResourceModel.java and an entry in atlassian-plugin.xml.
The above two java files are being used for producing data but how to consume data from json using them?
Hello,
Try to use the gson library. When you create a plugin for Jira, this library is included by default (check if it is included in the pom.xml file). You can find an example here:
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.