Forums

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

Old Description in New View

Rick Dinicola
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 8, 2020

I have a ticket that displays up to date changes to the description text, but shows an earlier  version of the ticket when I try to edit. This older version appears to be the last version I edited. Another user reviewed my edits and re-wrote the description. Now I cannot make edits to the latest version.

This only happens in new view. When I revert to the old view, I can edit the latest version. Has anyone had any problems like this?

1 answer

0 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 Champions.
August 30, 2018

Hello,

How did you make it required? Did you write code?

Sravya Vuggina
August 30, 2018

Yes -  please find my code below.

Should I be exclusively mentioning model.setRequired(false) in the if condition for Missing Vehicle Model? 

 

def category = getFieldByName("Feature Request Category")

def year= getFieldByName("Year")

def make= getFieldByName("Make")

def model = getFieldByName("Model")

def crField = getFieldById(getFieldChanged())

def selectedOption = crField.getValue() as String

 

    if ((selectedOption.contains("Missing Vehicle Model")))

    {

        year.setRequired(true)

        make.setRequired(true)

    }

    else

    {

       year.setRequired(true)

       make.setRequired(true)

       model.setRequired(true)

    }

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 Champions.
August 30, 2018

Did you attach this code to the Feature Request Category? I mean, you added the Feature Request Category to your behaviour and added this code in this field?

Sravya Vuggina
August 30, 2018

Yes I did. Mapped to the Feature Request Category field and the project / Issue Type. 

Sravya Vuggina
August 30, 2018

Added a line of code model.setRequired(false) to the if condition -first case and it seems to be working fine now. No matter in what order Feature Request Category values are selected the behavior of Model field seems to be working as expected. :) 

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 Champions.
August 30, 2018

Good to hear! :)

Suggest an answer

Log in or Sign up to answer