Forums

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

Custom field should not populate if it already holds a value

mokkapati naveshchowdary April 10, 2019
Example i had custom field called work started on if once it is populated it should not populate if we come to same transition

2 answers

0 votes
Tansu Akdeniz
Community Champion
April 10, 2019

Hi @mokkapati naveshchowdary ,

By default, if there is a customfield in transition screen, it always appears in that screen whether it has value or not.

If you want to do some tricks in pop-up screen, you can write custom javascript or use Script Runner's Behaviours feature.

Regards

0 votes
Joe Pitt
Community Champion
April 10, 2019

JIRA doesn't have a way to restrict editing a field when it is presented. If it is being presented on a transition screen only the work around is to have two transitions. One with a condition the fields is empty where the transition screen presents the field and one with a condition the field is not empty and the transition screen doesn't present the field. The user will only see one transition based on the conditions. However to do this you'll need a plugin that tests for conditions on custom fields. I use JIRA suite utilities but there are others out there that do that. 

mokkapati naveshchowdary April 10, 2019

For example I had a basic wf

open->in progress->in development->done

 

i had custom field called work started on which will populate current date and time, I had one more transition from Done to Open so after coming back to open we’ll move to in progress so again it is populating new current date and time 

Suggest an answer

Log in or Sign up to answer