Repository navigation
feat(project): list projects and create a project like another - #152
Merged
Merged
Conversation
- project list: every project the token can see (key, name, id, company-/team-managed, lead), paginated, table or JSON. Answers whether a key exists, which search cannot. - project create KEY --name --like REF [--board kanban|scrum|none] [--dry-run]: company-managed project reusing REF's issue type, issue type screen and workflow schemes (no template, no permission scheme), lead = current user, then a project-shared filter 'project = KEY ORDER BY Rank ASC' and a board on it. - Clear errors for an existing or invalid key, a team-managed reference, missing Administer Jira permission, the Free-plan restriction, and a board failure after the project was created. Closes #151
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #151
What
budjira project list— every project the token can see: key, name, id, company-/team-managed, lead. Paginated, table or--format json. Answers "does project KEY exist?", whichsearch "project = KEY"cannot (empty and missing projects both return no issues).budjira project create KEY --name NAME --like REF [--board kanban|scrum|none] [--dry-run]— company-managed project reusing REF's issue type scheme, issue type screen scheme and workflow scheme; lead = current user; issues unassigned. Then a filterproject = KEY ORDER BY Rank ASC, shared with the new project, and a board on it.Jira Cloud behaviour handled
POST /rest/api/3/projectrejectsprojectTemplateKeytogether with explicit schemes → create with schemes only, add the board via filter +POST /rest/agile/1.0/board.permissionSchemeis never sent (rejected on the Free plan); the project keeps the default scheme.--dry-runonly reads (reference, current user) and prints the three payloads.Verification
project listlisted all 7 projects with the correct style;project create … --like <company-managed project>created the project with the reference's three scheme IDs (verified via the*/project?projectId=endpoints), identical issue types, a project-shared filter and a Kanban board.Docs
README and the AI usage prompt (
project list/project create) updated.