The Scheduler Add-on - How can I bulk upload scheduled issues?

Roberta November 12, 2019

I would like to bulk upload scheduled issues instead of creating my 150 tasks one by one.

So far, it seems there is no way to either bulk export the scheduled issues or bulk import scheduled issues into the scheduler.

Thanks,

Roberta

2 answers

1 vote
Pierre Ibrahim February 21, 2020

Hi @Roberta ,

I have been able to achieve that by creating a XML file to upload into the scheduler, it needs to follow a specific schema of the following:

<TheSchedulerBackup xmlns="http://www.tt.com.pl">
<BackupInformation>
<JiraVersion>{InsertVersion}</JiraVersion>
<PluginVersion>{InsertVersion}</PluginVersion>
<BackupVersion>{InsertVersion}</BackupVersion>
<BackupCreator>{InsertCreator}</BackupCreator>
<BackupTime>{today's date?}</BackupTime>
<ExportType>{InsertExportType}</ExportType>
<SkipDisabled>{true/false}</SkipDisabled>
<DisabledAmount>{insertAmount}</DisabledAmount>
<SkipInvalid>{true/false}</SkipInvalid>
<InvalidAmount>{insertAmount}</InvalidAmount>
</BackupInformation>
<TheSchedulerData>
<ScheduledIssueElement> this would be each issue
</ScheduledIssueElement>
</TheSchedulerData>
</TheSchedulerBackup>

I believe you can get this schema if you download from the scheduler.

I then used Python to generate a XML file from a CSV that had all the issues I needed to import into the scheduler.

Unfortunately I was not able to find any online CSV to XML converter that would work with this specific schema, so best way I found to do it was to build my own.

If you'll use Python, I used the following:

  1. Python 3.6
  2. Pycharm IDE
  3. the csv library
  4. the lxml library (from lxml import etree)

Afterwards you just need to have a CSV file to import, and then start building your XML tree based on your CSV columns. A download from the scheduler should give you the exact schema you need for what all nodes it requires.

Also since it took me a while to figure this out, in order to make a node be a child of another node, you need to have the main node extend the child node, ex:

main = etree.Element('TheSchedulerData')
sub = etree.SubElement(main, 'ScheduledIssueElement') # This would be inside a loop iterating over every row of your CSV file
main.extend(sub)

 

Łukasz Modzelewski _Lumo_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
May 5, 2021

Amazing! :) 

In the future, we hope to create some bulk creation process and clean up import/export features. 

For others interested in som bulk operations not available through UI, this might give you the idea of how to work with export/import feature through simple editions in case of: changing the creator.

Note: Jira Server / Data Center only

Like Pierre Ibrahim likes this
0 votes
Pierre Ibrahim April 30, 2021

So I just stumbled on this question again after I myself needed to find the answer, seeing that my previous answer only answers what to do AFTER finding where to upload.

You can find the import bulk in JIRA administration (cog icon on top right) --> Manage Apps --> Import Scheduled Issues under The Scheduler.

Ivan Garcia July 31, 2023

Hi Pierre, curious to know if this is an option that was removed, limited to the "full" version of Scheduler (I'm currently on a trial to see if it fits my team's needs) or another methods to access a bulk import feature?

 

Following your outlined steps, I don't seem to have that option available to me.

Pierre Ibrahim July 31, 2023

Hi @Ivan Garcia , I can still see the "Import Scheduled Issues" on my end, we're on Scheduler v6.5.7 and JIRA DC v9.4.8

 

Not sure if this is a DC only feature, or a paid only feature (or potentially both).

 

@Łukasz Modzelewski _Lumo_do you know by chance?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events