I was able to add the default description. But, when a user edits the field and clicks away from it, it'll default back to the default value. Is there a way to check if the value has been changed?
def desc = getFieldById("description")
def currentIssueType = issueContext.issueType.name
def empty = ""
def defaultValue = """default value""".replaceAll(/ /, '')
def bugDefaultValue = """
default value2""".replaceAll(/ /, '')
if (! underlyingIssue?.description) {
if(currentIssueType == "Epic" || currentIssueType == "Story"){
desc.setFormValue(defaultValue)
}else if (currentIssueType == "Bug"){
desc.setFormValue(bugDefaultValue)
}else{return}
}
Answer:
At a Crucible code review, you just need to edit the code review and unlink the commit that you don't want.
Click on Edit Details > Add Content > Browse Changesets. Then you can unthick the commit that you accidentaly did.
But there is one caveat: Make sure that your undersired commit files don't have a inline comment. Otherwise, Crucible won't allow you unlink the commit from the code review.
Then click Done.
Thanks
Another point to mention is that each commit is linked to different JIRA issue ticket. Also, while checking the commits, I figured out that user was copying part of the repositories to another folder.
Thanks
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.