JiraタスクをMS Project MPPファイルにエクスポートします

この記事では、RESTAPIを使用してJIRAからタスクを MPP.NETのasophes.tasksを使用してファイル形式にエクスポートする方法を示します。

JiraタスクをMPPにエクスポート

以下は、JiraタスクをMPPにエクスポートする独自のソリューションまたは.NETのTasksでサポートされているエクスポート形式をエクスポートする独自のソリューションを構築できる重要なアイデアを実証する単純化されたコードを示します。

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.