JIRA SD GUI simply post JSON to:
{Host}/rest/servicedesk/{Portal ID}/pages/people/customers/{Project KEY}/invite
so I guess it should be possible to do the same via script.
It works! You can use:
curl -fs -u "${JIRAUSER}:${JIRAPASS}" -X POST --data "{\"emails\":[\"${EMAIL}\"]}" -H "Content-Type: application/json" "${JIRAURL}/rest/servicedesk/${PORTALID}/pages/people/customers/${PROJKEY}/invite"
--
Andreyev
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We would like this as well. In fact, the ability to use this feature inside of the standard "Create" button on all JIRA screens would be even better, as we could then use our URL ticket creation script to invite customers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This worked for me:
curl -v -fs -u "{${JIRAUSER}:${JIRAPASS}" -X POST --data "{\"emails\":[\"${EMAIL}\"]}" -H "Content-Type: application/json" "${JIRAURL}/rest/servicedesk/1/pages/people/customers/pagination/${PROJKEY}/invite"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.