How to leverage the Jira Java API createTeam method for Advanced Roadmaps
プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム。
この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。
*Fisheye および Crucible は除く
要約
Advanced Roadmaps provides the ability to create teams to work on specific parts of a plan. If wanting to create teams using the Java API (via something like ScriptRunner) for example, how should the createTeam API be used?
環境
Jira 8.20 and higher
ソリューション
The createTeam API accepts a TeamDescription object as input. So in order to create a new team via the Java API you must pass in a TeamDescription object. For example:
def newTeamDescription = new TeamDescription() {
@Override
public String getTitle() {
return teamName;
}
@Override
public Optional getAvatarUrl() {
return Optional.absent();
}
@Override
public boolean isShareable() {
return true;
}
}
teamService.createTeam(newTeamDescription)⚠️ Please note this is just a sample code, your implementation may differ some or require customization. This snippet is just meant to demonstrate the basic use of the createTeam function specifically. This code would need to be built into a larger script for meaningful results.
この内容はお役に立ちましたか?