Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Specify Link Sequance for Sub-task on JSON Import

Michael Bostwick September 9, 2013

Using the JIRA JSON Importer its possible to create issues and sub-tasks for projects. When I created json to import issues that used the subtask attribute on issues, I encounter exceptions that indicated certain fields were not mapped correctly, or were not the same types as the standard issue json object (i.e I couldn't build a full list of issues and nest that with in a parent issue) .

I found that I could create a link with the name of "jira_subtask_link" and it would enable sub task linking (i.e I could build a list of jira issues, and control the sub tasks via links). However, when sub task links are created the sequence of the link is not created (its left null) . Jira outputs an exception whenever sub tasks don't have a sequence.


Is it possible to trigger resequencing of jira issues, so that all subtasks get a sequence ? Is there a sequence option on the JSON Import I can use ? Right now, the only fix is to go into every issue, and get it to trigger a resequence by moving a sub task out of the parent issue. Dose anyone have a solution to get around the exception on issues that have sub-tasks that don't have sequences?

(I created a JIRA issue for the exception showing on the interface, because I think showing an exception when a sequence is missing on a subtask is unexpected behaviour (even if the data was created using the BETA importer) https://jira.atlassian.com/browse/JRA-34729 )

I have added some code to help show things in more detail. https://bitbucket.org/e0150228/one-off-atlassian-perl-work/src

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
ohernandez
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 10, 2013

Hi Michael,

I have raised a bug report for the issue in the JSON Importer at https://ecosystem.atlassian.net/browse/JIM-1039

Feel free to add further comments and watch it for updates.

Regards,

Oswaldo Hernández.
JIRA Bugmaster.
[Atlassian].

TAGS
AUG Leaders

Atlassian Community Events