Forums

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

Custom sub-tasks are not imported via the CSV

Szymon F June 23, 2023

In one of the projects I have the following setup of issue types:

 

Release->Sub-Task/Milestone

 

When importing the CSV (via External System Import) the Sub-tasks are imported but for the Milestione I have an error

2023-06-23 12:48:47,367 INFO - Importing issue: [externalId='autoid-37409307495451049', summary='Wave 2- Release 2023.08']
2023-06-23 12:48:47,414 ERROR - Error importing issue [externalId='autoid-37409307495451049', summary='Wave 2- Release 2023.08']: Unable to create issue: Wave 2- Release 2023.08

When I change the Issue Type in the CSV from Milestone to Sub-Taks it works as expected. It does not work also for the non-admin CSV import.

 

-----------------------

In the meantime, I have added an extra sub-task called (Test) and it works :) 

The Milestone still does not

-----------------------

Found the problem:

We have a Validator set for the Create transition using Jira Misc Workflow Extensions (JMWE).

issue.parent.issueType.name == "Release"

 Here is an error msg from logs: 

Evaluation failed: "issue.parent.issueType" - Unrecognized property of `issue.parent`: "issueType" ('issueType'). Type null does not have any properties

And.. I am not sure how to deal with it - I can not remove the validator and it is working when I manually create the Milestone sub-taks.

1 answer

0 votes
Nic Brough -Adaptavist-
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.
June 23, 2023

There should be more of an error message - something that says why it was unable to create.  Was the issue type not available in that project?  Were there mandatory fields that you'd left blank in the CSV?  Did you give it a valid parent issue for the sub-task to be part of?

As you say "changing the issue type" works, then the very first thing to look at is if that issue type exists in the project (try creating one in the UI), and then look at all the validation that gets done on create for that issue type.

Szymon F June 23, 2023

Hi Nic, good to hear from you!

I update my question with a recent finding

Suggest an answer

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

Atlassian Community Events