I am looking to find a solution that will allow fields within a JIRA ticket to be auto populated based upon dropdown selections when creating the ticket. I have some experience with administering JIRA but no development skills, so creating a plug-in is not an option for me. Any help here would be greatly appreciated as I need to get something in place quickly in order to meet a new business proposition.
Behaviours in the Script Runner would let you set pre-selected values. Post-functions would let you easily calculate a desired value and set it after the user commits a change. So, yes, Script Runner is probably the easy solution either way (and you'll find it's got other uses)
In line 14, value is going to contain rubbish, because you're trying to fetch a custom field object as though it's an integer. That will break total on line 15, and then that can't be posted in 16.
You'll also find the same problem in 8 - you need the value of a field, not the field.
Try something like
def cf0 = customFieldManager.getCustomFieldObject ("customfield_26200")
def valueCf0 = issue.getCustomFieldValue(cf0)
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
As a Jira power user, I was at first doubtful that Trello could benefit my workflow. Jira already uses boards (ones you can customize!), so why would I even need to use Trello?! In this post you will...
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