Using advanced field editing to inherit Team using automation

Nate Ballantyne
Contributor
March 25, 2024

Hello, I'm trying to inherit the "Team" field from parent issues but I'm seeing an error (just says internal server error in the audit logs). Is someone able to point out what I'm doing wrong here?

Thanks in advance!

Screenshot 2024-03-25 at 10.49.32.png

1 answer

1 accepted

2 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.
March 25, 2024

Hi @Nate Ballantyne 

Would you please post an image of the audit log details showing the rule execution?  That may help provide some context for this error.  Thanks!

And also...

The Issue Created trigger can fire so quickly some issue data may not be available when the rule starts.  This symptom can appear as failed steps, or unexpected behaviors, as the fields are null.  The work-around is to always add the Re-fetch Issue action immediately after the Issue Created trigger.  This will slow the rule down a bit, reloading the issue data before proceeding with the other steps.

Perhaps try adding that action to see if there is a problem with access to the parent issue's data.

Kind regards,
Bill

Nate Ballantyne
Contributor
March 25, 2024

Hey @Bill Sheboy thanks for the message.

This is what I get in the audit logs:

Screenshot 2024-03-25 at 18.27.44.png

I've also made the change as suggested (this is for my rule that does the change on transition):

Screenshot 2024-03-25 at 18.28.21.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.
March 25, 2024

Thanks for that information.  I do not believe the Team field is fully supported that way for automation rules yet: https://jira.atlassian.com/browse/AUTO-525

There are a couple of things to try for a work-around, and let's try the simplest first, changing this "{{issue.parent.team}}" to "{{issue.parent.team.id}}"

That will use the internal id value for the team to try to set it.  (Without the .id it was returning the entire Team object, which will not work with the JSON in the format you show.)

 

Nate Ballantyne
Contributor
March 25, 2024

That worked! Changing the value to what you suggested solved this, thanks for your help (again!)

Regards,
Nate

Like # people like this
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.
March 25, 2024

Awesome; I am glad to learn that helped!

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