Go back

๐Ÿšจ Quick Permission Fix for JM Project

The Problem

You're getting: "ๆ‚จๆ— ๆƒๅœจๆญค้กน็›ฎไธญๅˆ›ๅปบไบ‹ๅŠก" (You don't have permission to create issues)

The Solution (2 minutes)

Step 1: Check What's Wrong

bash
tm check-permissions -p JM -v

This will show you exactly which permissions you're missing.

Step 2: Fix Permissions in Jira

Quick Link: https://pamcms.atlassian.net/plugins/servlet/project-config/JM/permissions

  1. Go to project permissions page (link above)
  2. Find "Create Issues" permission
  3. Click "Edit" next to it
  4. Add your user or group (e.g., "Administrators", "Developers")
  5. Click "Grant"
  6. Done! โœ…

Step 3: Test It

bash
# This should now work:
tm create-ticket -t "Test ticket" -p JM -d "Testing permissions"

If You're Not a Project Admin

You can't change project permissions yourself. Ask your Jira admin to:

  1. Go to: https://pamcms.atlassian.net/plugins/servlet/project-config/JM/permissions
  2. Grant you "Create Issues" permission
  3. Or add you to a group that has this permission (e.g., "Developers")

Email template:

Hi [Admin],

Can you please grant me "Create Issues" permission on the JM project?

Project: https://pamcms.atlassian.net/projects/JM
Settings: https://pamcms.atlassian.net/plugins/servlet/project-config/JM/permissions

I need this to use ticket-mate for automation.

Thanks!

Alternative: Use a Different Project

If you have another project where you DO have permissions:

bash
# Check which projects you can create in:
tm ls-projects

# Use that project instead:
tm create-ticket -t "Test" -p YOUR_PROJECT_KEY -d "Test"

Still Not Working?

Check Your API Token

Your token might be too old or have wrong permissions:

  1. Generate new token: https://id.atlassian.com/manage-profile/security/api-tokens
  2. Delete old tokens (if you have multiple)
  3. Update .env.local with the new token
  4. Try again

Verify Your User Has Project Access

  1. Can you see the project in Jira? https://pamcms.atlassian.net/projects/JM
  2. Can you manually create a ticket? Try in the Jira UI
  3. If NO to either, you need to be added to the project first

โœ… Success Looks Like This:

bash
$ tm check-permissions -p JM

๐Ÿ” Checking permissions for project: JM

๐Ÿ“Š Permissions for project JM:

   โœ… Browse Project
   โœ… Create Issues      # โ† This must be โœ…
   โœ… Edit Issues
   โœ… Transition Issues
   โœ… Add Comments
   โŒ Delete Issues

โœ… You CAN create issues in project JM!

   Try:
   tm create-ticket -t "My ticket" -p JM -d "Description"

Quick Link: Go fix permissions now โ†’