Forums

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

Automation - projects array

Gema Ruiz September 27, 2023

Context:

I have several projects in Jira, and one of those project which I use to mantain mandatory documentation about the other projects.

project documentation --> project.id = AAA

Several projects with diferent projects id, for example {project.id:001,.... project.id:050}, and differents projects lead (project.lead)

Problem:

What I want to do is to create a rule triggered manually where I set an array of projects id and the rule creates a package of issues in project AAA, each pack of issues relates to the each project.id and its project.lead.

Is this possible?

Thank you very much in advance!

1 answer

1 accepted

0 votes
Answer accepted
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.
September 27, 2023

Hi @Gema Ruiz 

If I understand your question, your scenario is:

Given I have a Jira project with documentation, and that project has a custom field containing a list of other projects
When I manually trigger an automation rule
Then that rule will create several issues in the projects specified by the list of other projects

That seems possible, although I believe you would need to use a web request to call the REST API to create the issues.  The built-in Create Issue action cannot take a parameter/field to select the target project.

Kind regards,
Bill

Gema Ruiz September 28, 2023

ohhhh thank you!! any tip about how to implement it using a request to call the rest api?

Thank you for your help!

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.
September 28, 2023

Here is a how-to article for calling a REST API function from a rule:

https://community.atlassian.com/t5/Jira-articles/Automation-for-Jira-Send-web-request-using-Jira-REST-API/ba-p/1443828

And here is the reference for the REST API functions for issues.  There is a single Create Issue and a Bulk Create Issues to consider.

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-group-issues

Gema Ruiz September 28, 2023

Thank you very much!

Like Bill Sheboy likes this

Suggest an answer

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

Atlassian Community Events