Summary
For JIRA, you may want to allow a certain set of users the ability to create a new project in a standard way without granting them JIRA admin authority. This shows how to set up a self service CLI page for this. You can restrict the page to the appropriate subset of users that need this capability. This works by running the actions under a specific JIRA administrator profile, but by controlling what can be done.
Steps
- Configure Run CLI Actions in Confluence with appropriate profile for JIRA that has administration permissions
- Install Run Self-Service Reports for Confluence
- Install Macro Security for Confluence and secure the ability to use the cli macro to only jira-administrators or equivalent
- Create a page similar to the example below to a suitable location. Use Insert -> Markup or do equivalent via Macro Browser.
- Add more replace parameters if you need to give users more control over scheme setting, etc...
- Add more parameters to the createProject action to enforce any standards you have for projects
- Restrict edit permission on the page to jira-administrators or equivalent (must be permitted by your macro security configuration)
- Restrict view access to the page to only users that you want the ability to create projects
Example
This example requires a project name and key. It defaults the project lead to the current logged-in user. This uses wiki markup (Use Insert -> Markup) or you can do the equivalent via Macro Browser.
Example page
h3. Description Use this page to create a standard JIRA project {run:id=cli|titleRun=Create JIRA project|replace=name::Project name:text-required,key::Project key:text-required,lead:$current_user_id:Lead:text-required} {cli:profile=jira} --action createProject --project "$key" --name "$name" --lead "$lead" {cli} {run}
Macro Browser View
Screen shot