Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

The values entered in custom Fields are not showing during Edit issue

In my environment, i have configured behaviors for few custom fields. But the values entered in those custom fields during create screen are not showing when the user trying to see those values in edit screen. 
I can in view screen but during edit screen the values in those custom fields are not showing up.

Here is the sample code i have written for one custom field.

def PCFRequestType = getFieldByName("PCF Request Type").getValue().toString()
def PCFFoundationName = getFieldByName("PCF Foundation Name")
def OrgName = getFieldByName("Org Name")
def SpaceName = getFieldByName("Space Name")
def PCFFoundationType = getFieldByName("PCF Foundation Type")

def OnboardingType = getFieldByName("Onboarding Type")
def ApplicationType = getFieldByName("Application Name")
def ComponentToBeScaled = getFieldByName("Component to be Scaled")
def RequestedCapacity = getFieldByName("Requested Capacity")
def ServiceType = getFieldByName("Service Type")
def ErrorMessage = getFieldByName("Error Message")
def StepstoReproduce = getFieldByName("Steps to Reproduce")
def TriageStepsAlreadyTaken = getFieldByName("Triage Steps Already Taken")
def ADGroup = getFieldByName("AD Group")

getFieldByName("Buildpack Name").setHidden(true)
getFieldByName("Buildpack Version").setHidden(true)
getFieldByName("Tile Name").setHidden(true)
getFieldByName("Tile Version").setHidden(true)
getFieldByName("User Name").setHidden(true)
getFieldByName("PCF Role(s)").setHidden(true)
getFieldByName("AD Group").setHidden(true)
getFieldByName("PCF Version").setHidden(true)
getFieldByName("PCF Foundation Type").setHidden(true)
//getFieldByName("Space Name").setHidden(true)

OnboardingType.setHidden(true)
ApplicationType.setHidden(true)
ComponentToBeScaled.setHidden(true)
RequestedCapacity.setHidden(true)
ServiceType.setHidden(true)
ErrorMessage.setHidden(true) 
StepstoReproduce.setHidden(true)
TriageStepsAlreadyTaken.setHidden(true)
PCFFoundationType.setHidden(true)
//ADGroup.setHidden(true)

PCFFoundationName.setFormValue(null)
OrgName.setFormValue(null)
OnboardingType.setFormValue(null)
ApplicationType.setFormValue(null)
ComponentToBeScaled.setFormValue(null)
RequestedCapacity.setFormValue(null)
ServiceType.setFormValue(null)
ErrorMessage.setFormValue(null) 
StepstoReproduce.setFormValue(null)
TriageStepsAlreadyTaken.setFormValue(null)
ADGroup.setFormValue(null)
PCFFoundationType.setFormValue(null)
SpaceName.setFormValue(null)

if (PCFRequestType == 'Onboarding')

{ OnboardingType.setHidden(false) OnboardingType.setRequired(true) }

else if (PCFRequestType == 'Increasing Capacity')

{ ApplicationType.setHidden(false) ApplicationType.setRequired(true) ComponentToBeScaled.setHidden(false) ComponentToBeScaled.setRequired(true) RequestedCapacity.setHidden(false) RequestedCapacity.setRequired(true) SpaceName.setRequired(true) }

else if (PCFRequestType == 'New Marketplace Service')

{ ServiceType.setHidden(false) ServiceType.setRequired(true) SpaceName.setRequired(true) }

else if (PCFRequestType == 'Break-Fix')

{ ApplicationType.setHidden(false) ApplicationType.setRequired(true) ErrorMessage.setHidden(false) ErrorMessage.setRequired(true) StepstoReproduce.setHidden(false) StepstoReproduce.setRequired(true) TriageStepsAlreadyTaken.setHidden(false) TriageStepsAlreadyTaken.setRequired(true) SpaceName.setRequired(true) }Capture0.PNGCapture1.PNG

1 answer

0 votes

xxx.setFormValue(null) is your problem.

You are explicitly telling the behavior to clear our those fields.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Do Not Lose your Customer’s Trust

Missing deadlines is one of the biggest problems every team lead wants to avoid when dealing with managed services. When the customer contracts your company to help with IT services it is expected th...

24 views 0 0
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you