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 votes
Accepted answer

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
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,655 views 18 21
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