Locking Issues
Table of Contents |
---|
Info | ||
---|---|---|
| ||
You will need the following JIRA plugins: Level: INTERMEDIATE |
Problem
Once in a while it happens that we want to lock an issue, where by lock I mean that only the assignee of that issue can play with it.
This example shows you how to do that by using Blitz Actions and the Issue Security Scheme.
Solution
The idea is to create two actions: Lock and Unlock that only the assignee of the issue will see and a security level (Locked) that will only allow the assignee to see the issue.
...
Now you're probably wondering "Why do i need Blitz Actions to do this? Why can't the user set the security level himself?". Well, there are a number of reasons for this; what if we don't want the assignee to have the "Set Issue Security Level" permission? Or what if we don't want them to be able to edit the issue at all, but only log work or comment on it? Even if they do have the "Set Issue Security Level", not having "Edit issue" permission will prevent them from locking the issue.
Create the security level
Now let's get working. First off, we must create the security level, which looks like this:
Create the actions
Once we've done that, it's time to create the actions. We will create two actions Lock and Unlock.
...
Code Block | ||
---|---|---|
| ||
securityLevel = ""; |
Testing
That's it! Now let's test it.
...