Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 13

JIRA Support Self service

Use case: Access Requests

Fazila ashraf
Who are we?
Atlassian community of the Year!!!
Access request use cases:
• Jira software access request

• JIRA user access to certain plugins like Structure, R4J, jqltricks etc
JIRA software access on first login
With the below user directory setting on our jira instance, we let users again jira software license
on their first login.

The jira-users group is the one we have in our Jira’s application access and global permissions.
Great!
But license gets used up! 
Run a script to remove users who
didn’t login for last 3 months from the
jira-users group
Or, use this free plugin - https://marketplace.atlassian.com/apps/1219207/manage-inactive-users-for-jira?hosting=server&tab=overview

You are welcome!


Just did that..
But the next few days are full of requests
from license revoked users 

The LDAP configuration works only once


I can’t handle this!
Bring in a self service to solve this
problem
Jira software access request – Pre-Requisites?
Must:
• Groovy scripting knowledge
• Scriptrunner plugin
• JIRA service desk application – a starter license is enough (just $10/year for
server installation) as the self service project do not need any agent.
Jira software access request – How?
The code snippet:

def userUtil = ComponentAccessor.userUtil


def groupManager = ComponentAccessor.getGroupManager()
def group = groupManager.getGroup("jira-users")
userUtil.addUserToGroup(group,theIssue.getReporter());
Access request to certain plugins
In JIRA systems, some powerful and resource intensive plugin could be restricted to
certain users who are members of a specific group.
E.g.,
• Structure
• Requirements for JIRA
• JQLtricks functions
etc

In many cases, JIRA admins would just process the plugin access to any body who
just asks.
We could use the same code in the before slide to add the requestor to these specific groups and grant
them necessary access

The code snippet:

def userUtil = ComponentAccessor.userUtil


def groupManager = ComponentAccessor.getGroupManager()
def group = groupManager.getGroup("jira-structure-users")
userUtil.addUserToGroup(group,theIssue.getReporter());

JSD is just optional here!


Thank You!

Let us discuss your self-service ideas!

You might also like