Is there any way to clear the field value while cloning the issues in JIRA?
Hi Akshith,
If you use Automation for Jira to clone the issue, then, yes you can.
Hi John,
Can you explain how can I achieve this using automation for Jira? I want to clear some field values when we clone an issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sure - You can create a manual automation trigger. Then the action is Clone Issue.
There can select a field that you want to clear, and just put no value in the field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have created the rule but while cloning it is still copying the values
I have attached the rule screenshot please let me know if I need to do any changes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Which field are you trying to clear?
If the Due Date, click on More Information then replace what is there with this:
{
"fields": {
"duedate": null
}
}
You can do the same if it is the Description field, just replace duedate with Description.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Assignee and Description. I thought that the field (Description) will be cleared because as per the screenshot it is showing "This field will be cleared" But still while cloning the issues I can see the same assignee and the description on the clone issues
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried the above code to clear the description still not working
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.
Can you look into the history of the issue to see if something else is populating the Description field after the issue is created.
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.
There's not a lot else I can help you with then, I am afraid. I would suggest opening a support ticket with Atlassian:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Akshithrekulapelli,
I am Marlene from codefortynine.
Another option would be Deep Clone for Jira.
With Deep Clone it is possible to edit the issue (also clearing field values) while cloning.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here's the process I used to clear required fields when an issue is cloned. These fields are required when a new bug is CREATED, but I've been able to clear them when a bug is CLONED. The intent is that the user will enter fresh values, however I haven't yet been able to implement a transition screen or something that enforces the user enter fresh values.
1. update Bug Field Configurations so field A and field B are Optional fields
2. update Bug workflow to ensure those fields are Validated to have values upon the CREATE transition.
3. build a Jira Automation rule to look for Bug created with a “clones” issue link type
-- when: issue is created
-- condition: issuetype = Bug AND issuelinktype in (Clones)
--action: SET the Affects Versions field (leave it empty)
---use ‘More options’ to set the Severity field to null.
{
"fields": {
"customfield_10115": null
}
}
(not sure why but it won’t clear both fields and keeps validating Severity as ‘required’ when trying to Clone unless I configure the rule this way).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Akshith,
Did you get any resolution for making field as null i want to delete the history after cloning the issue
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.