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!

SN

1 answer

0 votes

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 Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

684 views 4 16
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot