I need to retrieve a list of the tables and fields in Jira. Am trying to use the REST API but there doesn't appear to be an option to do this. Is it possible using the API or is there another way?
I think you're out of luck. I'm not aware of the REST API providing a mechanism to interrogate or change Jira's inner database schema directly.
There is this documentation about the database schema, and this PDF that shows all the default tables by name and relationship, but all of that is abstracted from the user and the REST APIs... probably for a very good reason too. The documentation page even gives the same warning... "Direct database queries are not recommended in Jira. Instead, we recommend adding or modifying data via Jira's REST APIs"
On the topic of the REST API abstracting the database schema from the user, that page says "If you use Jira API, you will notice that a lot of code deals with
GenericValue objects. The
GenericValue is an OfBiz Entity Engine object. Each
GenericValue object represents a record in the database"
I think you may be looking for this...
Ignoring the software itself, it contains a list of tables using the names available from the API.
We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan. &nb...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events