Custom field disappears after automation rule runs

Nick Danielson August 15, 2024

I have a custom field I created and added to the Issue View called 'Closed Date/Time'. I also created an automation rule where once the Issue is transitioned to 'Closed', the 'Closed Date/Time' field is edited using {{now}}.

With that, after creating a new issue and viewing it in the issue view, I see my custom field called 'Closed Date/Time' and it is populated with nothing.

fieldshown.jpg

The issue is when I transition the issue to 'Closed'; the 'Closed Date/Time' field just disappears from the issue view.

fieldgone.jpg

I looked at my automation's audit log and it gives me an Unknown fields during edit error.

auditlog.jpg

I then used the find your field option in the issue itself and it found my field with no issues. 

 

findfield.jpg

Another thing worth mentioning is when I set the automation to trigger on when the issue is transitioned to 'Resolved' instead of 'Closed', the field populates as expected and is visible.

Does anyone have any advice on how to get this to work? 

2 answers

0 votes
Susan Waldrip
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 15, 2024

Hi @Nick Danielson , if I understand your problem correctly, I did something similar to this with a custom field called Complete Date and a post-function on the workflow transition from Resolved to Closed:

 

help3.jpg

When the issue transitions from resolved status to Closed status, the field automatically updates with the current date per the code. I also made the field view only for audit purposes. You might try this if it sounds like what you're looking for.

Nick Danielson August 16, 2024

Thank you @Susan Waldrip , I will take a look at this and see if I can't figure something out!

0 votes
Alicia Peebles
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 15, 2024

Hi @Nick Danielson !

I have a couple of ideas to try:

  • What is the trigger you are using for the Automation rule?  That could be why it is working for Resolved and not Closed. Make sure you have it set for both Resolved and Closed transitions.  Sounds like you are using Resolved, but maybe the action of Closing doesn't set the resolution as Resolved?  I have seen that missed in the post functions of some workflows.
  • Second, for the automation to run, the field has to be available in the Edit schema.  Double check the field configuration for the edit functionality to ensure the field is in that part of the schema. 

Good Luck!  Let me know if these ideas help!

Alicia

Nick Danielson August 16, 2024

Hi @Alicia Peebles !

Thank you for your response.

I'm using the below trigger. It's a very simple automation so that lends to my confusion.

autotrigger.jpg

I'm also seeing the 'Closed Date/Time' field appear in the edit issue action of the automation.

editissue.jpg

Do I need to configure the workflow so the transition to Closed includes a post function? If so, do you know what that might be?

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