Forums

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

Jira automation failures

Iryna
Contributor
June 24, 2020 edited

I have been using automation to create linked issues in multiple jira boards based on a custom field value. My scenario is following: one team starts working on a ticket, and once they are done with their part, other teams (multiple teams) will need to do their part accordingly. 

So I have a board where the workflow starts, then at certain status, the jira automation triggers creation of linked issues in other teams boards based on Implementation team fields. 

It worked fine when I just implemented it (couple of weeks ago), but now the rules just fail for some 1 or 2 out of very identical 6 rules. The only thing I could think of is potential problems when the ticket has 2 or more implementation teams selected, but it works half of the times. Very confusing. 

Attaching some screenshots with my rules, happy to answer more clarifying questions. 

This rule always works:

Screen Shot 2020-06-24 at 4.13.20 PM.png

 

this rule fails with error: Can't create the issue in project ( I checked all permissions and such). what else could be wrong here?

Screen Shot 2020-06-24 at 11.17.59 AM.png

3 answers

2 votes
Iryna
Contributor
June 30, 2020

thanks both for trying to help. The issue type = Task that exists in all projects. the only statuses that rule runs from are Todo or In Progress. Which exist on all projects. 

I am out of ideas honestly, cause I explained earlier that i have 6 identical rules, and 1 or 2 fail every time, while 4 -5 work. And it is not the same rules that are failing every time.  here is a screenshot from earlier today. 

Screen Shot 2020-06-30 at 2.47.21 PM.png

Iryna
Contributor
June 30, 2020

if you see my first screenshot from this thread - the rule that was failing was called - event implementation (VC ios Israel) and it is successfully run today with no changes made since last time. 

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 1, 2020

I still think there is something different about the issue. Maybe there is a required field in the target project that is sometimes not populated?

0 votes
wwalser
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 29, 2020 edited

John is asking many of the same questions that I would ask. To avoid polluting his answer thread, I'll start a new one for my own questions.

I hasten to add that I won't be able to dig deep into specifics in a community question. Support is a better format for that discussion. That said, I'm happy to share information that may be generally useful when debugging this category of issue.

Check the project type. Specifically, if any of the projects (origin or target) are "Next-gen" projects, that could be the culprit. Unlike Classic projects, Next Gen projects do not re-use most resources across projects. Instead, they create entirely new versions of many of their resources (issue types, workflows, screens). This was done to reduce configuration complexity. Schemes are often confusing to new people new to Jira.

Whie this duplication reduces the configuration complexity, it does cause issues when attempting to automate issues across multiple projects as all of those once shares resources are now distinct entities and it's difficult to know when they should be treated as the same. We're actively working on improving automation in Next Gen.

In the error from the screenshot above:

> can not create issue in project/issue type 13850/11441

13850 is the project id.

and 11441 is the issue type id. 

Similar to John, I'd be curious to know if that issue type exists on the target project. You could check that in Jira's preferences, or hit the REST API https://stagingwatergood.jira-dev.com/rest/api/3/project/13850?properties=issueTypes and see of one of the listed issue type IDs is 11441. 

0 votes
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 25, 2020

Hi Iryna,

Can you post a screenshot of the error you see in the Audit Log for the rule? 

Iryna
Contributor
June 25, 2020

see attached Screen Shot 2020-06-25 at 3.56.33 PM.png

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 25, 2020

Are you sure all of the permissions are there? Take a look at the Create Issue permission in the permission scheme for VCANDROID and compare it to the permission scheme for MI.

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 25, 2020

Make sure that Project Role (atlassian-addons-project-access) has Create issue permissions. 

Iryna
Contributor
June 25, 2020

I don't think permission is  an issue, I even granted the Reporter of the ticket an admin permissions to all the projects. 

 

I have a different rule that was successful at creating tickets in that failing project, see attached. 

Screen Shot 2020-06-25 at 4.24.39 PM.png

I was trying out the different approach where instead of cloning twice within the same rule, I had two separate rules as an experiment. While that experiment worked for some time, the different rule (identical one) started failing. 

So I am having 1 or 2 rules out of 6 fail consistently. 

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 26, 2020 edited

Ah just noticed that the above error you mentioned also mentioned issue type. So make sure that the issue type is available in the MI project - the issue type used in BPO-207. 

Iryna
Contributor
June 26, 2020

I did, it’s a type Task that’s available in all projects. 

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 26, 2020

Does that issue type use a different workflow in the two projects? 

Iryna
Contributor
June 26, 2020

yes it does. 


But it wouldn't explain why i can create tickets in that project with a different rule, but not the original one. If you see the last screenshot I attached yesterday, it is the same project that in a rule with an error. 

My original rule tries to create clones in 2 projects (it does always create successfully in one of the projects (android), but fails for another (magisto ios)). I had to make a different rule that only createsa clone ticket in a magisto ios project, and that rule doesn't fail.

Why does the rule1 fail? 

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 26, 2020

It might be because you are cloning a ticket that is in a status that doesn’t exist in the target workflow. I have seen that already this week in another post. 
So there are a lot more fields getting cloned other than just the project. 
I suspect it is the status.

Iryna
Contributor
June 26, 2020

I only clone tickets when status hits In Progress in a workflow, which exists in both of the projects. Do workflows have to completely match? 

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 26, 2020

No they don't have to completely match, but the value being inserted at issue create time must match. The other thing is to match every field between the two issues when you cloning in those instances where it fails. Something has to be different. 

If you can't find it or unwilling to go to that effort, then you probably need to go ahead and submit a Support Ticket with Atlassian. 

Iryna
Contributor
June 29, 2020

" but the value being inserted at issue create time must match" - what do you mean by that?

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 29, 2020

The current status in the first issue must be available in the workflow of the cloned issues. 

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