When I add flagged field in the layout it gets deleted as soon as i press the save button?
Asked by Ashbeel Ashkar Gohar:

I want to perform an automation that when an issue is over due it gets flagged. but I cannot add the field to the issue and also the automation seems not to be running. may be they are interconnected.


Answers:
author: Trudy Claspill
body: Hello [@Ashbeel Ashkar Gohar](/t5/user/viewprofilepage/user-id/5526369)

Welcome to the Atlassian community.

Are you working with a Team Managed project or a Company Managed project?

When asking for help with an Automation Rule it will help us help you if you share with us your Automation Rule. Please share screen images that show your entire rule and the details of each step. Also show us the output in the Audit Log for the rule.

Also, please show us the screen when you are trying to add the field to the screen and point out the field that you are adding.

comments: author: Ashbeel Ashkar Gohar
body: Hey [@Trudy Claspill](/t5/user/viewprofilepage/user-id/3569011) Firstly it is a company managed project.  

Below is the highlighted field i am trying to add.  
![Capture.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/332216i1B92DC4B6965C527/image-size/large?v=v2&px=999 "Capture.PNG")

Once i drag and drop it as below and hit the save button. The field automatically disappears.![Capture2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/332217i2780C278A4E6055F/image-size/large?v=v2&px=999 "Capture2.PNG")

Below are the stops that i am trying to follow

<https://community.atlassian.com/t5/Jira-questions/How-to-apply-highlighting-to-Due-date-field-on-card-layout/qaq-p/1533030>  
![Capture3.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/332218i740A774C539D4857/image-size/large?v=v2&px=999 "Capture3.PNG")


author: Ashbeel Ashkar Gohar
body: [@Trudy Claspill](/t5/user/viewprofilepage/user-id/3569011)   

Below is the screenshot of the rule i am trying to implement.![Capture4.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/332221i2570545CD260D815/image-size/large?v=v2&px=999 "Capture4.PNG")


author: Trudy Claspill
body: You don't need to add the Flagged field to the screen in issue layout. The field will display automatically when it has a value set.

![Screenshot 2024-06-27 at 10.59.40?AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/332235i478A832851839965/image-dimensions/347x192?v=v2 "Screenshot 2024-06-27 at 10.59.40?AM.png")

The rule should work without adding the field to the screen.

Can you show us the details of your rule's trigger?

I see that it is set to run at 9 am daily. What timezone is that set to use?

Are you executing a JQL statement in the trigger?

Do you have this box checked or unchecked?

![Screenshot 2024-06-27 at 11.06.20?AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/332237i997D88365C524AC1/image-size/large?v=v2&px=999 "Screenshot 2024-06-27 at 11.06.20?AM.png")

What is the output in the rule Audit Log following the time when this rule should have run?


author: Ashbeel Ashkar Gohar
body: [@Trudy Claspill](/t5/user/viewprofilepage/user-id/3569011)   

Here is the Screenshot of the trigger with the JQL and yes i have the box checkbox

![Capturea1.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/332242i1AD61317AA5D0D86/image-size/large?v=v2&px=999 "Capturea1.PNG")

The condition  
![Capturea2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/332243i8382A55045E0FDEF/image-size/large?v=v2&px=999 "Capturea2.PNG")

and the action  
![Capturea3.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/332244iC6B40D5131673339/image-size/large?v=v2&px=999 "Capturea3.PNG")


author: Trudy Claspill
body: With that checkbox checked, the rule will run only for issues that have changed in some way since the last time the rule ran. If you have an issue that has a due date in the past, but there has been no update on that issue, then this rule will not run for that issue.

And what output is generated in the Audit Log after the scheduled time of the rule execution?


author: Ashbeel Ashkar Gohar
body: Hey [@Trudy Claspill](/t5/user/viewprofilepage/user-id/3569011) Thank you very much. it worked. now it has added the flag successfully.


Tags: cloud

jira-cloud

jira-software