I'd like to set the initial fixVersion of a screen via JS. I'm doing the same to set the assignee to the current user(as opposed to automatic). The only problem is I don't know the JS code to set the fix version field. Does anyone know the proper form?
For reference, this is is what I use for assignee:
And what I have started for the version:
Thanks Jeff, that's what I was looking for.
A couple of thoughts in response:
Fortunately we don't really need this feature anywhere else, we just want it when we are creating issues in a screen. It's mainly so when we create 20 issues or so it's defaulted to the current version.
I looked into the Groovy plugin, it might work for our purposes. One of the problems I ran into with post functions on create is that there is no conditinal check. So if a user fills out the form with values they would be overwritten by the post script. If I could do the Groovy plugin, and have a script that said 'if the current version is not set, set it to the default' that would be ideal.
The best possible solution would be to have default values definable for each screen. We just want to be able to define some default values for the screens when users are filling in data. I suppose I'll make a ticket for that!
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
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