Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Automation not applicable to a new project

Dmitry Alabyan
Contributor
December 18, 2024

Greetings, Community!
I've set up a complex branched automation that is built around linked issues in the project. It triggers mathematical functions to be executed against certain fields of certain issue types if they have a specific link type.
In reality - sums up expenses from one level of issues to another in the corresponding field.
Automation is limited to one project, which has now been cloned entirely to be adapted for the upcoming 2025. Settings of the new project as well as the structure are identical to the existing and working one.
Somehow the automation doesn't get through the update though. It also had to be copied, as execution is relevant only in a single-scope.
Attached are the
a) failing step upon the validation of the copy 
b) source step working fine in the current '24 project

Any ideas?

Screenshot 2024-12-19 at 04.34.38.png Screenshot 2024-12-19 at 04.35.35.png

2 answers

0 votes
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.
December 19, 2024

Hi @Dmitry Alabyan 

First, I would confirm the custom field exists in the new project.

 

Next, a Jira Work Management (JWM) project could be team-managed or company-managed.  For the team-managed ones, the custom fields are distinct for each project, and so...

When an automation rule is copied from one to another (or between project types), it could still be referencing the custom field IDs of the old project.  Another possibility is the custom field name is ambiguous when referenced between projects.

There are two things to try to resolve this:

 

Kind regards,
Bill

Dmitry Alabyan
Contributor
December 27, 2024

Thank you, @Bill Sheboy 
Since I am managing both instances - of course, the fields do exist. As well as the projects are company-managed.

I've checked the field ID through the api call  - it's one and the same field, same ID.
Hence, I do not also see the collision (ambiguity) in names - I am applying the same logic to the same field.

Lastly, the rule itself is not cloned. Automations are not duplicated through DeepClone.
Rather, I manually cloned it and set the scope to be for a) two projects instead of one
b) new project only - hence, also confirmed the issue lies somewhere with the new project.

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.
December 27, 2024

Please post the following:

  • An image of your complete rule, in one single image file.  This will provide overall context.  If your rule is larger than a single page, try using a screen capture tool or browser addon which supports scrolling page capture.
  • An image of the complete Edit Issue action where that JSON is attempted.  Only part of that action is currently shown.
  • An image showing the audit log details (if the rule was able to execute)
Dmitry Alabyan
Contributor
January 7, 2025

- the rule has got these branches in it, overall 8, with a difference only in the linked issue step, since it's very specific for each branch.
- JSON advanced edit is actually complete, nothing else happens
-  audit log - N/A, rule doesn't save with these specs, so we don't even get to the execution part
Screenshot 2025-01-07 at 16.41.01.png Screenshot 2025-01-07 at 16.42.23.png

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.
January 7, 2025 edited

Thanks for those images.

You noted you checked the field's ID to confirm it.  Did you also note the capitalization exactly matched what you are using for the smart value in the JSON?  If it does not match that will not work.

 

Regardless, let' try the custom field ID in place of the smart value for the "Budget Spent" field.  Please substitute in your specific field id value.

{
"fields" : {
"customfield_12345": "{{lookupIssues.customfield_12345.sum|0}}"
}
}

And if the custom field is a number-type, please remove the quotation marks in the JSON for the value:

{
"fields" : {
"customfield_12345": {{lookupIssues.customfield_12345.sum|0}}
}
}

 

As an aside, there is a change rolling out this week adding better validation to rules.  I wonder if that is causing this symptom:

https://confluence.atlassian.com/cloud/blog/2025/01/atlassian-cloud-changes-dec-30-to-jan-6-2025#:~:text=Validate%20more%20components%20in%20Jira%20and%20Confluence%20automation%20rules

0 votes
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.
December 18, 2024

Hello @Dmitry Alabyan 

What is the Type of these projects? You can get that information from the Type column on the View All Projects page under the projects menu.

What process did you go through to "clone entirely" the project?

Dmitry Alabyan
Contributor
December 18, 2024

these are work management ones.

Cloning - used the deepclone plugin.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events