Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I check for permissions with JQL?

Philip Schlesinger
Contributor
April 27, 2015

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
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 27, 2015

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