Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to delete field value with Jira automation?

Hadar Dinte May 2, 2023

Hi

I created automation when a value is deleted in some field, it needs to delete the value in other fields. 

It works for me only on the Obejctive field, but it's not working well with the Sub objective and the Key result fields. 

Thanks for helping

 

Screenshot 2023-05-02 at 11.00.16 AM.pngScreenshot 2023-05-02 at 11.00.27 AM.png

1 answer

2 votes
Patricia Francezi
Community Champion
May 2, 2023

Hi @Hadar Dinte 

I have this issue sometimes, and in order to get this solved I use the smart value {{clear}} in the set value field. 

Can you try this?

Also, if the field has a default value configured or its mandatory could be a reason why. 

Check and let me know. 

Hadar Dinte May 2, 2023

Hi @Patricia Francezi  

Unfortunately, it doesn't work...

And it's not a mandatory field

Like Patricia Francezi likes this
Patricia Francezi
Community Champion
May 2, 2023

Well, did you entered the smartvalue {{clear}}?

Please send a new screenshot with this. 

Some times is not clear how to add it so 

- you need to change (...) to set value 

- type {{clear}} in the box 

- it shows bellow "smartvalue {{clear}}" and you need to click on it. 

Waiting on

Hadar Dinte May 2, 2023

This is what I did and it doesn't work

Screenshot 2023-05-02 at 2.57.49 PM.png

Hadar Dinte May 4, 2023

Hi @Patricia Francezi 
Do you know why?

Patricia Francezi
Community Champion
May 4, 2023

Not yet.

More questions: 

Please share the audit log for any attempt please?

Also the history tab of the issue.

What are the field types that dont take the clear value from automation? (List, text, etc)

Is there a context configured for them? (meaning specific values per project or issue type?)

Is there a default value set up for them?

Hadar Dinte May 4, 2023

Hi @Patricia Francezi 

 

 It sends a message of Success but it's not

The fields are 'Text Field (read only)' type

The fields appear only in Epic issues

There is no default value

Thanks

Screenshot 2023-05-04 at 5.03.14 PM.pngScreenshot 2023-05-04 at 5.03.30 PM.png

Patricia Francezi
Community Champion
May 4, 2023

Hi @Hadar Dinte 

So there are things here to keep in mind 

- If you are trying to clear a text ready only field there is a bug related

https://jira.atlassian.com/browse/JRACLOUD-77845

The same thing happens with automation, as you can see in comments, so in this case, I suggest you to vote and watch this issue. 

The difference is that you dont see the same error as the comment, so one way would be open a ticket with Atlassian for your issue. 

Second approach would be put some text , like "None" value in this action while bug is not fixed.

 

- If I understood correctly, you change this value only on epics, BUT the trigger has no condition, meaning that any issue type would trigger it 

In this case, you need to know that fields need to be also at least in edit screen in the standard issue types (bugs, tasks, stories), if you want to edit then via automation. 

But if the bug is still in place for the ready only fields, that might be your case, this is mandatory

- So, if standart types triggers this rule, you are not working on the Epic because there is no branch in your rule

You want to clear the field in epic OR in stories bugs, etc? 

If your trigger is a child, and you want to clear at epics you need to use a branch for that. 
This is the doc for start understanding https://support.atlassian.com/cloud-automation/docs/what-is-rule-branching/

Let me know if this helped

Hadar Dinte May 6, 2023

Hi @Patricia Francezi 

Thank you, I voted in the bug and hope that will be fixed soon.

I would like to clear this field only in Epics, and my trigger is based on a field that exists only in Epic, so I don't think I have any problem, right?

Patricia Francezi
Community Champion
May 9, 2023

Hi @Hadar Dinte 

Your case is included in the bug mentioned, for text read only field.

The workaround is put some text like "none" in the aumation instead of trying to clear it. 

Hadar Dinte May 10, 2023

Hi @Patricia Francezi 

Yes, this is what I did

Thank you

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events