---
title: "How to create a self service create project page"
canonical: "https://support.appfire.com/space/SUPPORT/89134894/How%20to%20create%20a%20self%20service%20create%20project%20page"
format: markdown
---
> Macro (toc)

# 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 administrator 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

1. Configure Run CLI Actions in Confluence with appropriate profile for Jira that has administration permissions.
2. Install [Run Self-Service Reports for Confluence](https://appfire.atlassian.net/wiki/spaces/RUN).
3. Install [Macro Security for Confluence](https://appfire.atlassian.net/wiki/spaces/CMSP) and secure the ability to use the **cli** macro to only jira-administrators or equivalent.
4. 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](https://appfire.atlassian.net/wiki/display/JCLI/Documentation#Documentation-createProject) action to enforce any standards you have for projects.
5. Restrict edit permission on the page to jira-administrators or equivalent (must be permitted by your macro security configuration).
6. 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

![image](media://587768bb-f665-455c-aeab-cd66b7b67f00)

# Screen shot

![image](media://2cbc02b9-16ba-4de7-85fd-88698880da89)