We need certain fields Mandatory but they are only ever to be filled in by an internal service desk agent, not the customer. For example, we must fill in the Tempo Account field before the item is closed. The tempo account field will not be filled in by the customer but needs to be mandatory before an internal agent can close the ticket. We also need to do the same sort of thing for a custom field.
Outside of Service Desk, there are two options.
Making them always required would mean the customer would have to fill it out before they could submit their ticket, which we don't want them to fill out.
Unfortunately setting the Tempo Account field to required on Transition doesn't work as Tempo uses a default account of 'None' so the transition thinks the Account field has a value in it and doesn't stop the transition
Yeah, it seems quite clear that the validator isn't working as intended with the Tempo field.
I don't see this bug listed in JIRA Suite Utilities or Misc Workflow Extensions, but I do find a reference in the Tempo Timesheets project – TT-3369. There seems to be little to no movement on the issue, and in fact was just closed.
The Tempo bug seems to detail that the validator works when no screen is present, but fails (passes) when the Tempo Account field is on-screen.
I would like to poke at this with scriptrunner myself. I'm sure we can write something simple that does the job. I can't promise a solution or a timeframe though.
Here is one we tried but with no luck
Issue issue = issue
def issueManager = ComponentAccessor.getIssueManager()
def customFieldManager = ComponentAccessor.getCustomFieldManager()
def cFieldObject = customFieldManager.getCustomFieldObject("customfield_10105")
def cFieldValue = cFieldObject.getValue(issue)//issue.getCustomFieldValue(cFieldObject)
if(cFieldValue.toString()== 'none' || cFieldObject.getValue(issue).toString() == null) return false
else return true
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
...+ reading Fantasy). The same is true for him at the bank he works for: Efficiency is key when time literally equals money. Read on to learn how Sergey makes most of the time he has by...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs