We are trying to prototype using a script to account for the following scenario:
If a story in the demo status is transitioned to the next status of 'Accepted', a transition screen is popped up which contains a field called 'Bug Management' which is a checkbox. We want to set this field to read only IF the story has a linked bug to it which is in the open status. Also need to show an error message on the screen, or under the screen when the field is set to read only due to matching the conditions
How can this be accomplished? Using behaviors or script listeners?
Started off with the following code which is not working:
def Field = getFieldByName("Bug Management")
def StoryStatus = StatusManager.name == "Accepted"
//def LinkType = IssueLinkManager.any()
if (StoryStatus && LinkType == (true))
Thanks & Regards!
Hello Community! Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...
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