I have given permission to one user in my workflow to close issue when its in "Resolved" state, But that single user is not able to get that transition button. Also if I remove Close issue permission for that user and provide "Transition Issues" then that user are able to close ticket.
Then what is purpose of close issue permission? and where I can use this?
I have added my workflow and Permission scheme.
It's a bit of a hang-over from Jira 1 to be honest. In there, the workflow was fixed, but needed a way to control who could resolve and close issues. So the permissions for "resolve issue" and "close issue" were created and used in conditions on the resolve and close transitions.
When we got the ability to edit our own workflows, they became less necessary, as you didn't always put the condition "must have close permission" on close transitions (or even have a close transition).
I'd guess your workflow simply doesn't use the permission. If you want it to, just add the condition "user must have close issue permission" to the transition you want to protect.
With that way I can use any permission as a condition for transition. Use of Close and Resolve permission in condition is just a binding over permission with condition. As we can see on create transition of workflow Jira automatically add Validator "Only users with Create Issues permission can execute this transition"
so same way if we think logically Jira need to add validator automatically on close and resolve transition.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The create transition is different to all the other transitions. It has no conditions because conditions are mostly based on information about the current issue, and when you're in the "create", you don't have an issue because the point is that you're creating one!
Have a look at any other transition in the workflow. You should find you can add conditions to them, and that one you could add is "user has the <select> permission", with the <select> you're offered including Close Issue permission.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.