php object from issue

Hi, we are creating a SaaS that, in the future, we will integrate with Jira.

To do so, considering that in our software there is an "issue" entity, we'd like to create that entity to mimick Jira's (at least for now in the minimal fields required to create an issue). We've had a look at Jira's REST APIs, and they are good to get a Json, but what we need is to have the specs for all fields so that we create a php object that mimicks Jira's issue. So when in the future we decide to integrate with JIRA we can upload all those issues already created in our system into JIRA without incurring into data type or data format issues. I'm sure it's already been done and there is no point reinventing the wheel. Can anybody point me to where I can find the "php equivalent" of the Jira's issue?

Thank you!


1 answer

0 vote

Not really, there isn't one.  A JIRA issue is a collection of variable arbitrary fields and attributes, and your best option is to create whatever "php equivalent" that suits you from the JSON returned by the REST call to view the issue.  You'll need to translate it back into JSON to use it to change data on the issues.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

159 views 1 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you