Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Lock

...

an issue - a better variant (Live Fields)

Table of Contents

 

 

Info
titleRequired plugins
You will need the following JIRA plugins:
  1. JJUPIN
  2. Blitz-Actions

Level: BASIC

Problem

 The problem of this recipe appears when two or more different users try to edit the same issue page. The mechanism explained bellow try to avoid this problem by locking the issue during the edit process and unlocking it at the end of the editing.

Solution

 To solve this problem we propose a solution that use two of our plugins: JJUPIN and Blitz-Actions.

The Solution is exemplified on a JIRA 5.2.1 environment. In order to resolve it you have to have administrator rights.

Step 1

Create a new Blitz-Action custom field:

...

  • Configure the "Disable" Custom Field by choosing the cog icon  and selecting the "Configure" option.
  • Add two new buttons by clicking on the "Edit Buttons" link. Name those two buttons: "Lock" and "Unlock":

 

Step 2

Create a new Custom Field that keeps the username of the user that locked the issue editing.

...

On this step we have connected the buttons we've created to toggle the Is Locked Custom Field when pressing them.

 

Step 3

Now we have to make the SIL script that will do the disable operation during the edit.

...