The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

how do i restrict users to commit on any issues in jira

ShrutiM
January 28, 2015

hi,

    i used 'yet another commit checker' hook in my stash instance to restrict user to commit with issue id mentioned in message must , that condition was assignee should be mentioned and status of the issue should be in progress.

    But now what i am getting problem is the users who are not assigned to that JIRA issue are also able to commit with that issue key.

i want only assignee can commit with the assigned issue-key, so please let me know how can i set that condition.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Midori
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 Champions.
January 9, 2016

With the Commit Policy Plugin, you can specify the exact JQL query that returns the issues that are required in the commit message.

In your case this should work:

assignee = currentUser() and status = "In Progress"

This is a frequently used rules, see other popular rule examples here.

TAGS
AUG Leaders

Atlassian Community Events