Forums

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

How to fix broken create issue automation rule?

Danno
Community Champion
September 29, 2020

I've tried to create an issue in a different project using automation and it fails for the following errors. The Date needed field gets filled out when the new issue creation window opens. See the picture below the audit screen.

Automation Error Screenshot 2020-09-29 123450.gif

Create PR Automation rule window Screenshot 2020-09-29 124204.gif

Here is the flow I created.

Create PR Automation rule Screenshot 2020-09-29 123326.gif

 

1 answer

0 votes
Marco Brundel
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 30, 2020

Hi @Danno ,
When creating an issue in the PR project it is therefore required that the "Date Needed" field is filled.
Where is this field set up required, do you know that? (That this field is required can be, for example, a validator on the create transition in the workflow of project PR.)


Is it an option to also fill the field via the rule?

Regards, Marco

Danno
Community Champion
September 30, 2020

Good Day Marco,

Yes, the Date Needed field is currently a required field (it is set as required in the field settings) in the Purchase Req. project and I do enter a date when it comes up in the create issue screen as you can see in the above screen shots. I do find it interesting that the screenshot I have doesn't have the red asterisk that indicates Date Needed is a required field like on the Summary Field The only validator in the Create transition is the system one of "Only users with Create Issues permission can execute this transition."

I do not have anything in the automation rule to set a date for that field. I also do not know what the second warning message means except that it might be indicating that the rule has already failed on the Date Needed step and so it ignores the create linked issu part of the rule which seems to be what is happening.

Marco Brundel
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.
October 1, 2020

Hi,
You want to create an issue in project PR via the automation rule. But because the field "Date Needed" is mandatory when creating an issue in project PR, the issue is not created and that is what the first error says.

And I think that also gives you the 2nd error, that there is no issue to link.

regards, Marco

Danno
Community Champion
October 3, 2020

Marco,

I hve been able to solve the first problem of my rule. It turns out you need to have the automation rule set the required field. This allows for the issue to be created which then allows for the issue to be linked back to the triggering issue. Now I have to solve how to get the rule to correctly assign the issue to the same assignee in the trigger issue and get an automation rule in the the project where the new issue has been created to set a custom field after it has been created.

Marco Brundel
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.
October 4, 2020

@Danno 

If you choose the Assignee field at the Create Issue, you can choose "Copy for trigger issue". Is that the solution for the Assignee field for you? Regards, Marco

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