How to create Jira issue with rest API (PHP)

How to create Jira issue with rest API that will set the new created customer as the creator of the issue?
and the organization will be set on the organization of the customer?

1 answer

1 accepted

0 votes
Accepted answer

In Service Desk, you usually work with requests - see https://docs.atlassian.com/jira-servicedesk/REST/cloud/#servicedeskapi/request-createCustomerRequest for the REST calls for that.

I tried submitting the issue thru api and setting the creator as the costumer and the return was error.

[creator] => Field 'creator' cannot be set. It is not on the appropriate screen, or unknown.

the one that I used on the authentication of the api  is the default creator of the issue.. Is there any way we can set the costumer as the creator? 
 

The creator of an issue is the person who creates it.  Not the customer.  JIRA will set it for you.

Gerry Tan Atlassian Team Oct 26, 2016

Also as per the REST API doc, if you're authenticating the REST request as agent, you can set the raiseOnBehalfOf field to set reporter to particular customer

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 9 hours ago in Agile

What is Scrum? A good, bad, and ugly answer.

In a world of dark-scrum, faux-scrum, and scrum-butt, the question still remains: What is scrum and how do you do it “right?” That’s the question we set out to answer. I'm Max, I've been teaching c...

51 views 0 1
Join discussion

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