Comments
-
import com.atlassian.jira.ComponentManagerdef componentManager = ComponentManager.instancecomponentManager.getUserUtil().getGroup("jira-users").getUsers()
-
Hi, please create a ticket at https://productsupport.adaptavist.com/servicedesk/customer/portal/2 and someone will be in touch.
-
Can you try 3.0.10... there were several problems with 3.0.9 so I've put out another release.
-
Probably, I'm looking at it... does your "class or file" contain a fully-qualified path, or one relative to your script roots?
-
You can use com.atlassian.jira.issue.MutableIssue#setResolutionId. There is a Bulk Fix Resolution built-in script, which allows you to bulk change by jql query (IIRC), maybe you could just run that several times.
-
I do it programatically, however the relevant strings you need are below. However, you need to, or at least you needed to, patch the plugin to make it understand ${repo}. You can find instructions for this somewhere. Otherwise you can just hard-code repo to the repo name I guess. setChangeSetFormat(webSvnUrl +…
-
"comment" is not in the binding, see https://jamieechlin.atlassian.net/wiki/display/GRV/Built-In+Scripts#Built-InScripts-CommentsinEmails
-
It will be: comment.author
-
And the event if it's a listener, but yes indeed. Thanks for the issue.
-
Yeah... that's no good is it. Can you create a bug, I will try to fix. I don't think the email template has access to transientVars or event, to get the comment added on that transition.
-
Thanks for finding that Daniel... however I think that will fall over when there are no comments. I have updated the sample template in https://jamieechlin.atlassian.net/wiki/display/GRV/Built-In+Scripts#Built-InScripts-Sendacustomemail (Point 3). Make sure you use the if, or if you don't, at least test it with an issue…
-
Select some changes and do Interactive Rebase...?
-
I'm not sure Benji's answer is right. Your problem is that you're reloading the issue from the db rather than just using the issue object provided to you in the binding. issue.getCustomFieldValue(CustomField) should work fine. No IssueManager.
-
Maybe you haven't configured an email server? See https://confluence.atlassian.com/display/JIRA/Configuring+JIRA's+SMTP+Mail+Server+to+Send+Notifications
-
No easy way that I can think of. You could add a script field that returns the date of last comment (don't put on any screens) and order by that, but seems like overkill. Or perhaps that function should by default return them in that order, although I don't know if jira's default ordering will override that.
-
Actually this is clearer: issue.subTasks.every {it.resolution}
-
Just use issue.subTasks.any {!(it.resolution)} I think you probably wanted it.resolutionId, but that's a String value (which always has something that looks like an integer, but is not one), so you can't use "greater than".
-
That's a "normal" error on windows, IIRC.
-
Yeah... if he wants to do that sort of thing himself you could point him to the remote API. That stuff can be accomplished with user level perms and the SOAP or REST API.
-
No, because if he can run jelly scripts, he has full access and could make himself an administrator with the right jelly script. We can give better suggestions if you tell us what he wants the jelly scripts for?
-
Try to avoid mixing javascript in with your velocity. Can you put it in a separate file and source it in? Otherwise you might have to escape your dollars.
-
That's probably the version with the bug. If you open the jar with winzip or winrar or "jar xf", find the file SendCustomEmail.groovy, line 383 (about) should be: addresses.add(cf.getValue(issue)?.emailAddress) line 386: addresses.addAll(cf.getValue(issue)?.collect{it.emailAddress}) You can make those changes then re-pack…
-
Or you can upgrade, but the version of the plugin with the fix does not support jira 5.0, hence my instructions above.
-
Also not available in OnDemand: https://jamieechlin.atlassian.net/wiki/display/GRV/Scripted+JQL+Functions#ScriptedJQLFunctions-expression(Subquery,expression) but adding for completeness.
-
There are no analytical functions in JQL... it's not possible. You could write your own JQL function to help you find issues that are 20% past their due date, or you could write a custom field that shows the %age past due date and query on that, but in terms of doing ad hoc analytical stuff, JQL is not the answer. You can…
-
Short answer is Gary Weaver of course, and Radu and Pablo for making me chuckle. Nic has plenty of karma ;-) Slightly longer answer is that I'd love to see people ranked by karma or accept rate, by tag. Because I value answers to some types of questions much higher than others, eg ones that involve writing code as part of…
-
The question is not even a question, but reading between the line, I saw this function in the JQL Tricks plugin: https://studio.plugins.atlassian.com/wiki/display/JQLT/User+Functions It would be nice if, in JQL, you could use a dotted notation like: issue.project.lead = currentUser()
-
It's not in the permission scheme, it's under issue security schemes. Check the docs, I even posted the link.
-
Not by user, but it's done by project. Look at issue security schemes.
-
There is a corresponding .gz file. You need to gzip your css and overwrite the one present. It's a PITA.