Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation : create an issue in any project from webhookData

Pierre-Henri August 16, 2021

Hello,

I would like to create an issue from a webhook that is triggered from a cron that runs outside Jira on a dedicated server every night.
My Goal is to automatically create an issue in a project based on the data I send from the server.

 

I didn't succeed to do it globaly. I mean, I want to have a single url endpoint globaly and manage to create a new issue to the right project. I will have tons of project and I don't want to do it manually for each one.

In my webhookData, I send the project ID, a priority, a title, a description, an assignee.
I send all the data to Jira global webhook url.

I don't want to edit an existing issue, nor a subtask, I want to create a new issue. And it doesn't seem to be possible to filter on the project.

I tried everything I could to do this for the past week, but it keeps failing. I  need your help.

 

Thank you.

1 answer

1 accepted

2 votes
Answer accepted
Pierre-Henri August 16, 2021

OK, after a week of work with automation, I just found out that I could easily use REST API to do that and it works fine !

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 16, 2021

Hi @Pierre-Henri -- Welcome to the Atlassian Community!

Well done!

You will find that one added benefit of using the REST API to create the issue in any project is that you can use a project-scope rule, and so will not use up your global-rule execution limit for a standard license.  Normally rules which impact all/multiple projects need global-scope.

Best regards,
Bill

Like Pierre-Henri likes this
Nicolò Spito November 4, 2022

@Pierre-Henri could you attach some screens of the solutions? :)

Pierre-Henri November 4, 2022

@Nicolò Spito you can find everything here : https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-post

There is no screenshot, it's a custom development made in php.

The documentation is quite useful and well build.

Like Nicolò Spito likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events