Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to freeze / lock an issue from editing in a certain status

Jon
Contributor
November 2, 2018

Is it possible to lock an issue from being edited if its in a certain status or a certain field is filled in? Or have any suggestions on add ons that could do this in the most simple way? 

2 answers

4 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 2, 2018
Jon
Contributor
November 6, 2018

hi Alexey, is there a way to do this based on a field being filled in instead of based on the status? for example, if XXX field is filled in then YYY Field is locked. in user needs to change YYY field they have to delete XXX field.

 

instead of groups could we do something like it is limited to be edited by the user that entered them? 

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 6, 2018

Hello,

It is not possible on cloud.

0 votes
Tom Lister
Community Champion
November 2, 2018

Hi @Jon

As well as the status properties you can use Scriptrunner plugin Behaviours to control fields on screen based on scripted conditions

Jon
Contributor
November 2, 2018

How would you implement this? In the work flow? I have scriptrunner or is it a different type of scriptrunner 

Tom Lister
Community Champion
November 2, 2018

Hi

If you are familiar with Adapavist Scriptrunner Behaviours

https://scriptrunner.adaptavist.com/latest/jira/behaviours-overview.html

then the code to set a field ready based on another field would be something like

log.warn("setting conditionField");
def EARequiredfield = getFieldById("customfield_10300");
def EARequirements = getFieldById("customfield_10301");

 

def EARequired = EARequiredfield.getValue();
log.warn("10300 " + EARequired)
if (EARequired == "Yes"){
EARequiredfield.setHelpText("test: " + EARequired );
}
else {
EARequiredfield.setHelpText("test 1: " + EARequired );
}
//EARequired.each { selectVal ->
if (EARequired == "Yes"){
EARequirements.setReadOnly(true);

log.warn("source value: " + EARequirements.isHidden());
}
else {
EARequirements.setReadOnly(false);
log.warn("source value: " + EARequirements.isHidden());

//}
}

 

Jon
Contributor
November 5, 2018

Hi Tom, thanks for the suggestion, unfortunately I have Jira Cloud, and as I understand it Behaviors are only available for server. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events