How do I check for permissions with JQL?

Hi all,

JIRA 6.2.3

So we're migrating a bunch of component values to a single select-list custom field; we're doing this because components are multi-select; we want the list of options to be single-select.

We do have ScriptRunner, but I'm a real n00b on it, so I'd rather use JQL queries and then Bulk Change them in 1,000 qty batches.  Much more control that way.

The problem is that some of our projects have been archived (i.e. browse-only).  I'd rather not mess with those.

If I don't exclude projects from the JQL which are browse-only, then when browse-only tickets are included in Bulk Change, the Edit tickets option is made N/A on the second screen.

With JQL, how do I check to see if I have Edit Issue permission as an administrator?  Or how do I exclude in JQL projects which are in a certain permission scheme?


1 answer

1 accepted

0 vote

You can't.  JQL searches for issues based on fields, not permissions. The only permissions that matter is "if I can't see the issue, don't include it in the results".  There might be a couple of JQL functions in addons on the marketplace that do this, but I've not stumbled across any.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

75 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you