Forums

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

I want to add a role as soon as a new project is created using automation

Pramod Pradhan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 4, 2024

 

1. I want to create  a role 

2.  add that role to a  team-managed project 

as soon as it gets created using jira global  automation. 

 

 

1 answer

0 votes
Marc - Devoteam
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.
September 4, 2024

Hi @Pramod Pradhan 

Welcome to the community.

Are talking about roles on global level in Jira, if so these are only applicable to permission schemes.

Roles on Team-managed projects are bound to the project only.

This can't be assigned via automation, only an admin of the project is able to create roles and add people to a role.

Pramod Pradhan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 8, 2024

Hi Marc,

Thanks for replying. Is there any work around ? can we do this using using JIRA restapi ? Or running a custom script ?

Also is there any Automation smart values for project  Link ?? 


{{project.id}} is for project id 

{{
project.avatarUrls}} is for project avatar. But i couldnt find any smart value for link to the project Home page 

Marc - Devoteam
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.
September 9, 2024

Hi @Pramod Pradhan 

I think I have been wrong.

You could try the following API options.

You can create a role in the system: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-roles/#api-rest-api-3-role-post 

And you should be able to put the role on a project: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-roles/#api-rest-api-3-role-id-put 

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events