-
Bug
-
Resolution: Fixed
-
Low
-
10.3.3, 10.3.4, 10.5.0
-
2
-
Severity 3 - Minor
-
9
-
Issue Summary
The presence of the field Due Date in a project's screens causes a null pointer exception in a clone action automation involving an Assets field copying a value from the trigger issue.
Steps to Reproduce
- Create a sample object schema and a few objects.
- Create a sample project.
- Create an Assets object custom field, associate it with the object schema and add it to the project.
- In the screens for the project, add the field Due Date.
- In the project, create an automation rule:
- When: Manually triggered
- Then: Clone issue into (Same project, same issue type, Assets field "Copy Assets Field from Trigger issue")
- Name it something like "Assets Clone Issue".
- Create a new issue in the project and add an object to the Assets field.
- Click on More > Assets Clone Issue. A message will state the rule was executed successfully.
- Go to the automation audit logs and check that the rule failed with the following error:
Unexpected error executing rule: java.lang.NullPointerException
- Now, remove the Due Date field from the project screens.
- Try the clone action again. It will work.
Recent reports indicate that, similar to the 'Due Date' field, any field primarily a date type that remains empty can result in a Null Pointer Exception (NPE) error. This occurs when using the clone/create option, which involves an operation to copy the values of Asset fields within the Automation rule (A4J).
Expected Results
The issue is cloned successfully.
Actual Results
The automation rule fails.
Workaround
If only the Due Date or any other removable field is involved, it could be removed from the issue view. However, if the situation involves essential custom fields that must be copied, it is advisable to implement an IF condition in the rule to verify the value of these specific fields for the time being.
- links to