Forums

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

When doing CLONE of issues in the same project how to do automation?

Jan Šimek
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.
July 26, 2022

Hi, 

I have an issue when creating an issue by cloning it in the same project, that it cannot be catched by automation and it does something which I dont want.

I have an automation, which says: - when custom field value changes to something, then send email and move to another status.

But when creating an issue by cloning it, this custom field is already filled with value, which causes, that automation skips it and sends an issue to another status, which I dont want.

For normal issues which are created by clicking on create I have no issue, because it works as it should, but in this case I am not sure how to proceed with clones?

Also there is no option sadly to say that issues cannot be cloned. 

So I am thinking about automation which would say: when issue is cloned delete value of this custom field - but it all has to happen before my other regular automation will takes place and will move it to another status.

 

Do you guys have any suggestion?

 

Sharing regular automation and workflow.

Snímek obrazovky 2022-07-26 121154.pngSnímek obrazovky 2022-07-26 121233.png

 

1 answer

1 accepted

0 votes
Answer accepted
Walter Buggenhout
Community Champion
July 26, 2022

Hi @Jan Šimek,

Looking at your overall setup, you may be at risk of over-engineering your process a bit. But apart from that, you could add a post function to the create transition of your workflow that explicitly clears the value of your custom field.

Should you consider this, this should be an update custom field post function where you don't specify a value. As a result, the field will be cleared, as in this example:

Screenshot 2022-07-26 at 12.52.06.png

Hope this helps! 

Jan Šimek
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.
July 26, 2022

Hi @Walter Buggenhout I am aware of our  setup being quite big, but it is decision of company to have it this way.

So if I see correctly post function clear the custom field before the issue is even created?

Is it gonna work the same way with cloning?

 

Thank you so much, this help a lot :-) I was wrapping my head around it.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events