continuous automation failure mail

백재현/DevOps
Contributor
November 20, 2023

I recently created Automation at Global Scope. When an issue is created, if there is an approver field, write a comment referring to the approver.

The problem is, when an issue is created for a project without any Approver Field, SOME ERRORS occurs for some projects and NO ACTIVIONS PERFORMED for others.

Importantly, neither project has an Approvers field. In other words, I will be fine if both become NO ACTIONS PERFORMED, but I am puzzled that some projects have SOME ERRORS.

In the case of a project where SOME ERRORS occurs, the error message below is shown.

Could not find your configured field, it may have been deleted, or may need to be added to the project
Approvers

Whenever SOME ERRORS occurs, I receive a failure notification email. How can I change it to NO ACTIONS PERFORMED from SOME ERRORS?

2 answers

1 accepted

0 votes
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 20, 2023

Hello @백재현/DevOps 

Can you describe each step of your rule, or provide screen images (in English)?

Additionally can you provide the complete details of the rule execution Audit Log (in English)?

In order to give you advice we need to know which step is producing the error. We also need to understand the context in which that step is executing within the rule.

백재현/DevOps
Contributor
November 20, 2023

Screenshot 2023-11-21 at 15.30.36.png

This is the rule detail

 

Screenshot 2023-11-21 at 15.31.29.png

This is the error case.

 

Screenshot 2023-11-21 at 15.32.18.png

This is the NO ACTION PERFORMED case.

 

Both LCC and TMAPBX doesn't have Approvers field

 

So I wonder why they have different error message.

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 21, 2023

Are both projects Company Managed projects? If so check if the field is present in the Field Configurations used by the issue types being created.

While both projects may not have the field on the screens, the one resulting in No Actions Performed may have the field in its Field Configuration. That would enable the rule to resolve the field reference. If the field is not in the Field Configuration for the project and issue where you get the error, that could be the reason for the error.

Like Bill Sheboy likes this
백재현/DevOps
Contributor
November 22, 2023

Hi, the project that has an error is not the company managed project. this project is the team managed project. Will this be a problem?

 

When I see the Issue types of this project, it doesn't contain Approver field now, but it seemed like a situation that could add an approval field.

Saveliy Dzvonkevych November 22, 2023

I'm having the same issue in my project:

"Could not find your configured field, it may have been deleted, or may need to be added to the project"

Everything used to work perfectly, but just out of the blue, this error started popping up. There is no delay with payments to Jira and Add-ons. 

Check this screencast:

https://www.loom.com/share/7ab6cfc1d5274e968b41689955292d24

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 22, 2023

@백재현/DevOps 

Company Managed projects use Field Configurations that can be managed by a Jira Administrator and shared by multiple projects. If the field is listed in the Field Configuration then the Automation Rule can resolve the field reference.

Team Managed projects do not use Field Configurations. Team Managed project know only about the fields that are available on the screen for that specific project. If the Approvers field is not present in the Team Managed project's screen, then you will get that error.

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 22, 2023

@Saveliy Dzvonkevych 

I watched your video. The error you are getting is related to trying to edit a a field (Checklist Text) in an issue (UPPROP-15).

If you view the issue UPPROP-15 directly do you see the Checklist Text field on the screen? And can you edit it?

백재현/DevOps
Contributor
November 22, 2023

Then How do I get rid of this Team Managed Project from Global Scope Automation?

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 22, 2023

@백재현/DevOps 

If the Company Managed projects and the Team Managed project are the same type of project, for instance if they are all Software projects, then one option is to change the Rule Scope from Global to Multiple Projects. Then you have to select each project where you want to rule to be run. If you create a new project where you want the rule to be run, then you will have to update the rule Scope to include that project.

Another option is to add a Condition immediately after the Trigger. In that Condition check that the Project field of the triggering issue is not equal to the Team Managed project. The rest of the rule would then execute only for a issues in projects other than that one Team Managed project.

백재현/DevOps
Contributor
November 23, 2023

There's no condition to check if the project is the company managed or team managed.

I'm sorry but I narrow down to the multiple project scope from the global scope and it's just an workaround. I hope this will be improved someday.

 

Thanks for your help

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 23, 2023

Hello @백재현/DevOps 

My suggestion was not to use a Condition to check if the trigger issue project was Team Managed or Company Managed.

My suggestion was to use a Condition to check if the Project field of the trigger issue indicates it is from the specific Team Managed project that you want to exclude:

Screenshot 2023-11-23 at 7.38.51 AM.png

0 votes
Wojciech Wardaszko
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.
November 23, 2023

@백재현/DevOps, @Saveliy Dzvonkevych 

I'm with HeroCoders, the team behind Issue Checklist Pro, one of the apps affected by this error. We had some tickets about this issue coming from different customers.

It seems that Atlassian introduced something on the backend that affected fields with global contexts but no screens associated, like our Checklist Text field.

We do not yet know the inner workings, but adding any custom field to any screen in a project and removing it re-registers the field within that project's field configuration scheme. It is confirmed to work in team-managed projects as well.

You do not need to show the field in the issue view, just add it, save, remove it, save.

This should solve the issue.

Cheers,
Wojciech

Saveliy Dzvonkevych November 23, 2023

@Wojciech Wardaszko @Trudy Claspill 

Thanks for your quick responses!

Honestly, I don't really understand how to make it work. Indeed, I use Checklist Pro, and everything used to work properly, besides, the steps you advice didn't help.

See the whole logic and attempts over there:

https://www.loom.com/share/4604548e3cd74bdeb7836db813af432a?from_recorder=1&focus_title=1

Is there any hope to resume the checklists in automation working?

Wojciech Wardaszko
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.
November 24, 2023

Hi @Saveliy Dzvonkevych

It became apparent yesterday that the solution I proposed was very short-lived - Jira database apparently clears the field association from the scope of automation rules soon after the field is removed from the last screen in any given project.

We have started to push back against this change, please see here: https://ecosystem.atlassian.net/browse/ECOHELPPUB-95 I'd appreciate it if you commented on this ticket saying this affects you if you have access to it.

In the meantime, one of our customers came up with a workaround - they created a placeholder issue type and added it in their projects, configured it with a separate screen configuration and added Checklist Text to that screen.

They never plan to use that issue type, but it registered the field within the project and restored their automated operations related to Checklists.

I hope this helps, as ugly as the workaround may be. We are determined to help our users with this. We are sorry that there was no heads-up, but this change surprised us greatly as it was not communicated with the developer community beforehand.

Cheers!

Like Saveliy Dzvonkevych likes this

Suggest an answer

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

Atlassian Community Events