Versions Compared

Key

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

Sometimes you may want to make the database child information fields read-only. There are two ways for doing this:

  1. The first and simple way of doing it, and portable across JIRA versions, is by using the lfDisable routine from the Live Fields feature of our JJupin plugin.
    Just create a SIL file called Main Script with the following code:

    Code Block
    titleMainScript.sil
    lfDisable("customfield_xxxxx");

    where customfield_xxxxx is the the id of your dbcf child custom field. You can see the cf id as parameter in the URL when editing its configuration (eg  '.../secure/admin/EditCustomField!default.jspa?id=10701')

    Then create a Live Field Configuration using the above Main Script and associate it to a project, let's call it ProjX.

    Every time we enter on an issue page of ProjX  project, the MainScript.sil is executed and the customfield_xxxxx will be read-only.

    You can find more about Live Fields here, including a configuration example similar to the one above.

  2. Or, as an alternative method you can use javascript injection into the custom field's description.

    Note

    You should pay attention that this may not be portable across JIRA versions.

...