How could i flagged issue in worflow ?
Asked by Marie-H?l?ne PARISATO:

I would like to flag issue if user use a specific transition. COuld i put fla on in transition in workflow ?

Otherwise, could i flag on issue in automation rule ?


Answers:
author: Ste Wright
body: Hi [@Marie-H?l?ne PARISATO](/t5/user/viewprofilepage/user-id/4508655)

You can certainly do this using Automation!

The rule might look like this...

* **Trigger:** Issue Transitioned
  * To Status = *\<status here\>*
* **Action:** Edit Issue
  * Field = Flagged
    * Value = Impediment

You might need to have another rule to remove the flag also, or an additional action within this rule, if that's needed.

You can also add **Conditions**if the flag should only be added in certain circumstances!

Ste

comments: author: Marie-H?l?ne PARISATO
body: yes, how can i remove flag ?


author: Ste Wright
body: Hi [@Marie-H?l?ne PARISATO](/t5/user/viewprofilepage/user-id/4508655)

If it's based on a different trigger (eg. the issue being transitioned into a *different*status), you'd need a second automation rule to remove the flag (i.e Flagged = NULL).

Ste


author: Marie-H?l?ne PARISATO
body: I try but can't , rule doesn't take my 'NULL' writen. I can only choose 'impediment'![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/273289iA9CDCCD9CDA8EE39/image-size/large?v=v2&px=999 "image.png")NULL is not accepted : ![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/273290iDC30F879AF0B3E1E/image-size/large?v=v2&px=999 "image.png")


author: Ste Wright
body: Hi [@Marie-H?l?ne PARISATO](/t5/user/viewprofilepage/user-id/4508655)

Apologies for confusion, for NULL, just leave the field empty in the automation action :)

Ste


author: Marie-H?l?ne PARISATO
body: no i can't , i try too be sure.


author: Marie-H?l?ne PARISATO
body: ok, it's working

Thanks a lot, it was another condition in my rule what make it not working


author: Arkadiusz Inglot
body: Hi

In automation:  
Edit issue action \> field called: "Flagged" \> select your created values

comments: author: Ignacio Pulgar
body: Just type "Impediment" as the value.


author: Ignacio Pulgar
body: Hi [@Marie-H?l?ne PARISATO](/t5/user/viewprofilepage/user-id/4508655) ,

You can definitely flag an issue on transitioning an issue through a specific transition.

Since you have Automation Rules at your disposal, I'd recommend going directly for that approach, as it is easier to detect all automatic behaviors in a given project, rather than having to open the edit mode of a workflow and look for post-functions in every and each of its transitions to find out.

To do so:

1. use the Transitioned Issue trigger selecting the original and target status of the transition you want (if there were multiple transitions, use the option to select a specific transition instead)
2. use the Edit Issue action, select the "flagged" field and "Impediment" as its value.

Hope it helps.

comments: author: Marie-H?l?ne PARISATO
body: ok thanks ignacio.

If field is modified, if value has been putted to A i put flagged to impediment

But and if value has been deleted i want to unflagged , how can i do ?


author: Ignacio Pulgar
body: Hi [@Marie-H?l?ne PARISATO](/t5/user/viewprofilepage/user-id/4508655) ,

It would consist of the same steps, except you would leave the Flagged field empty instead of typying "Impediment".

Cheers


author: Marie-H?l?ne PARISATO
body: thanks a lot all for your help, and now, how can i remove flag then by automation rule?