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

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


    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

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.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

1,000 views 1 16
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you