I can set the default value for the description field but I'm unable to clear it.
def desc = getFieldById("description")
def issueType = getFieldById("issuetype")
def defaultValue = """Who: user/role
What: description of a feature / workflow / action
Why: benefit / value / reason
Note: Please provide screenshots, mockups, photos of whiteboards, sample files, etc. to better present what needs to be done within the scope of a ticket.
Analysis (Technical) Notes:
Developers provide technical details on implementation, references, code, links, screenshots, etc. here""".replaceAll(/ /, '')
if (! underlyingIssue?.description) {
if(issueContext.issueType.name == "Epic")
desc.setFormValue(defaultValue)
}else if(underlyingIssue?.description == defaultValue && issueContext.issueType.name != "Epic"){
desc.setFormValue("Test")
}
This message also pops up
These fields have default values for this project and issue type combination. We have preserved the existing values in case you need them.
The issue is that I choose issue types in the mapping. I just defined the issuetypes in the if condition
I had such a similar Warning but I solved my problem by adding a space between my * and : to all occurrences
Previously my default Description was:
*Story Description*:
then changed it to
*Story Description* :
Tiago
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So weird, my field did not have a description so I added it with a space at the end and the message went away... and then I cleared the description.
Now it displays exactly the same way as before but with no warning. Rather feels like a bug but I suppose too much of a corner case to get any attention.
Thanks for the clue!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.