Експорт завдань JIRA у файл MP Project MPP MPP

У цій статті ми будемо показувати, як експортувати завдання з JIRA за допомогою API REST у форматі файлу MPP за допомогою Aspose.Tasks для .NET.

Експорт завдань JIRA до MPP

Ось спрощений код, який демонструє ключові ідеї, які дозволяють вам створити власне рішення експортувати завдання JIRA на MPP або будь -який експортний формат, що підтримується Aspope.Tasks для .NET.

Для того, щоб експортувати завдання з JIRA до формату MPP, слід виконати наступні кроки:

  1. Зробіть запит до JIRA API для вибору завдань для експорту.
  2. Створіть екземпляр класу проекту.
  3. Перейдіть отриманий JSON та створіть об’єкт завдання для кожної сутності “питання” у отриманому JSON.
  4. Впроваджуйте логіку для встановлення завдань. СТАРТ, ЗАВДАННЯ ТА ТІЛЬНІСТЬ.
  5. Збережіть екземпляр класу проекту у файл у необхідному форматі (MPP у цьому прикладі).

This example demonstrates how to retrieve tasks from Jira using the REST API, convert them into Task objects with Aspose.Tasks, and export them to the MPP format. The process begins with an HTTP request to the Jira API using basic authentication. The received JSON data is parsed and stored in a dictionary for further processing. The TasksBuilder class is responsible for constructing the task hierarchy by iterating through issues and creating corresponding tasks and subtasks. Each task is assigned extended attributes that include the issue key and a link to the original Jira issue. The implementation includes a placeholder for setting task start and finish dates, as well as duration, which should be defined according to the project’s requirements. Finally, the constructed project is saved to a file in the MPP format.

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.