How to clear fields value when an issue is cloned? Automation rule and workflow rule does not seem to work while Clone feature is used.
When you use the Clone Issue action in an automation rule, you have the option to override the value of any fields.
So if you do not want a field to copy from the source issue, just select that field in the action and clear the value. If the field is not shown in the drop-down list, you may use the advanced edit with JSON feature to clear the field.
Kind regards,
Bill
hi @Bill Sheboy I tried, that, but its not clearing the fields too. I have this rule created against "Issue Created" but it seems the Clone is being treated differently than Created. Any workaround would be appreciated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please post images of your complete automation rule, including the details of your Clone Issue action, and of the audit log details showing the rule execution. Those may provide context for what you are describing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
my rule worked if i remove the comparision of "if condition that checks if the Due date is not empty".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is the rule working as you expect now?
What was the purpose of your condition testing the Due Date?
And...please note the Issue Created trigger can happen so quickly that the data is not yet available to the rule. This can cause conditions and actions to work unexpectedly later in the rule. For example, some of your cloned fields may remain empty
One work-around for that is to always add a Re-fetch Issue action immediately after the Issue Created trigger. This will slow down the rule by about a second and reload the trigger issue's data before proceeding.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes, the rule is working as expected. I am not sure though why having a condition of "Due date is not empty" would fail it. However, we could survive with always clearing the "Due date" I removed the condition.
I feel, as the rule triggers when issue is created, it is looking at the new issue which is cloned, while i am trying to fetch the data from source ticket data, probably that may be the reason its failing?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, that is correct...as I noted in my last two paragraphs above.
What is happening is sometimes the data is not available after the Issue Created trigger, and so your condition test on Due Date is not empty was not passing. That I why I noted adding the Re-fetch issue after the trigger.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you are willing to try a third-party app, our Deep Clone for Jira could help you.
With our Clone and Edit feature, you can edit or clear specific field values while cloning issues.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi @Luka Hummel - codefortynine Sorry we are only looking for existing Jira feature for now. Our usage is limited so don't yet want to use any third party.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You don't. There's no mechanism for this because cloning means cloning - it is supposed to create a copy of the source issue that is as close to the original as possible, and that means copying all the fields.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, it's a function of "create issue" - if someone can create an issue in a project, then they can use clone.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This got fixed, as soon as i removed the "if condition that checks if the field was empty".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.