Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Allow only the automation user to make changes on an issue

Edited
Dirk Ronsmans Community Leader Dec 07, 2021

I'm having an issue with blocking everyone to edit an issue except for the 'Automation for Jira" user.

On a specific status I have the workflow property set to disallow editing of the issue when the user is not the Automation user. (it used to be just deny all but then the Automation user also failed).

According to the documentation this should be possible using a workflow property:

jira.permission.edit.user=<username of the user>

Now this seems to be where it goes wrong. What excactly is the username of the 'Automation for Jira' user?

I've tried with:

  • Automation for Jira
  • com.codebarrel.addons.automation@connect.atlassian.com
  • the accountid which I found when setting a filter

None of them seem to work and my automation rule is still blocked. When I remove the property it works fine but then of course everybody can edit.

 

Any ideas?

 

edit: seems I was able to allow it by using jira.permission.edit.projectrole=10500 where 10500 is the atlassian-addons-project-access  role.

Not the cleanest but seems to work!

2 answers

0 votes
Fabian Lim Community Leader Dec 08, 2021

Hi @Dirk Ronsmans

If you were using server I would have suggested live fields feature from power scripts to hide the edit button. 

I would contact scriptrunner dev's, they may have something similar to this post where the hide web panels and options. Link: https://scriptrunner.adaptavist.com/5.6.8/jira/fragments/HideUIElement.html

If you can hide the button from the ui, you won't need to block the status properties.

Regards

0 votes
Mohammed Amine Community Leader Dec 07, 2021

Indeed I wanted to suggest even using roles or groups. 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

JSM Jira Automation: How to Send SLA Breached Notifications

Hi Everyone, In   this tutorial,  we will show you how you can monitor an SLA, and send notifications before or after the SLA has been breached.   SLA Threshold Trigger The SLA t...

722 views 5 13
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you