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 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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Fadoua M. Boualem
Published yesterday in Trello

Using Trello to manage events

As a Jira power user, I was at first doubtful that Trello could benefit my workflow. Jira already uses boards (ones you can customize!), so why would I even need to use Trello?! In this post you will...

447 views 6 7
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