oxglissue

star 11

Create GitLab Issue

oxidian By oxidian schedule Updated 3/3/2026

name: oxgl:issue description: Create GitLab Issue

Context

First, run these commands and review their output:

  • Current project: glab repo view --output json | jq -r '.path_with_namespace'

Issue type labels

GitLab uses scoped labels for issue types. Add the appropriate label when creating or updating an issue:

glab issue update {number} --label "type::bug"

Valid type labels: type::bug, type::feature, type::task

Linking issues

To link an issue as related to a parent, use the issue links API. First get the project ID:

glab repo view --output json | jq '.id'

Then create the link:

glab api --method POST "/projects/{project_id}/issues/{child_iid}/links" -f target_project_id={project_id} -f target_issue_iid={parent_iid} -f link_type=is_blocked_by

Link types: relates_to, blocks, is_blocked_by

Inheriting from parent issue

When creating a linked issue, it should have the same milestone and labels as its parent.

Get parent issue labels and milestone

glab api "/projects/{project_id}/issues/{parent_iid}" --jq '{labels, milestone: .milestone.title}'

Set labels on new issue

glab issue update {number} --label "type::bug" --label "component::backend" --label "priority::high"

Set milestone on new issue

glab issue update {number} --milestone "Sprint 42"

Your task

Based on the user's request:

  1. If a parent issue was specified, fetch its labels and milestone first
  2. Create the issue with glab issue create --title "..." --description "..."
  3. Add the type label using glab issue update {number} --label "type::..."
  4. If a parent issue was specified:
    • Link it using the issue links API
    • Copy the parent's scoped labels (component, priority, size)
    • Copy the parent's milestone (if set)
  5. Execute each step as a separate command. Do NOT chain commands with && or ;. Do not send any other text or messages besides these tool calls.
Install via CLI
npx skills add https://github.com/oxidian/cc-plugins --skill oxglissue
Repository Details
star Stars 11
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator