Comments
-
You could try that but they take com.atlassian.jira.issue.label.Label objects. Better to use https://developer.atlassian.com/static/javadoc/jira/5.0/reference/com/atlassian/jira/issue/label/LabelManager.html#setLabels(com.atlassian.crowd.embedded.api.User, java.lang.Long, java.util.Set<java.lang.String>, boolean, boolean)
-
Source and Reviews tabs are only shown to people with the view source control permission, so you can remove everyone from that permission, which will hide them.
-
This is a JQL question really, not about script runner escalation service per se. I could not find a function that queries on the last comment/commenter... but it seems like a good idea so I put in https://jamieechlin.atlassian.net/browse/GRV-302 .
-
Renjith's answer requires some programming skills, and the skill of looking for similar answers involving the IssueLinkManager to find all linked issues, then summing whichever field. You might want to also try the Structure plugin (expensive but may be worth it) which will do this and a lot more.
-
Please vote for / watch, https://jamieechlin.atlassian.net/browse/GRV-250
-
I converted it to an answer, you can accept that. Thanks!
-
Those functions are only available in the condition block and the additional actions block of built-in scripts. You can just copy the impl to your script: Closure isUserMemberOfRole = {String role -> ProjectManager projectManager = componentManager.getProjectManager() ProjectRoleManager projectRoleManager =…
-
No worries, thanks for helping.
-
You are using it in the right way IIRC. I think the issue is it's not available in the script binding for some reason. This is in the script for a "simple scripted validator", or is it your own script? A screenshot might help.
-
I don't think it's possible that the service could have set a random value. Is there an action through which the issue is transitioned? Do you have any listeners on update? It's more likely that you have a post-function or listener that updates the original estimate, and it's not doing what you think.
-
issue.getCustomFieldValue(componentManager.getCustomFieldManager().getCustomFieldObject("customfield_190"))?.displayName (IIRC)
-
OK so... issue.projectObject.name is the same as issue.getProjectObject().getName() in java... getProjectObject() is on MutableIssue (see javadoc link) but it's inherited from Issue. getName() is a method of Project (which is what is returned by getProjectObject()/projectObject). cheers, jamie
-
Oh, I see you asked that other question too. I guess my advice was not helpful :-(
-
Hi, Your code looks like groovy. If you could tell us the name for the post-function we could be sure. Assuming it is groovy then it would be: issue.projectObject.name == "ABC" On the more general subject of "how", my advice is at this answer. Also explained in that is how project/projectObject are methods.
-
there;s different flavours of Java.lang.OutOfMemoryError, so having the full log message would help. I doubt you would need more than 256Mb permgen.
-
Theoretical limit with 32-bit java, unless you have a special version compiled with /3GB, is 2GB. What's the actual error in the stacktrace, are you sure it's not running out of permgen? 1Gb heap should be enough unless you have a large jira instance.
-
Can't you do View Wiki Markup then paste that in? Even if you have to paste it into the wiki markup macro thing? If you can't I agree this is a problem. If I have a long complex page to write I will often do it in a local confluence instance, then transfer to production instance when done. I do this with Edit in Word,…
-
+1 from me.
-
Hi Matt, Yes I meant macro autocomplete. > use the Insert Wiki Markup Dialog - Command + Shift + D. Doesn't seem very intuitive or natural to me. I selected it with the keyboard and tried shift f+10 but windows context menu key but it just brought up the browse context menu. If it could bring up your menu that allowed me…
-
There's a lot to like in the new editor, particularly if you're not an advanced user. However there is plenty room for improvement if you are. Eg start typing a macro name, the macro browser comes up and you select it. Then you have to actually get your mouse, click it, click edit, rather than be able to type in the…
-
Can you set the log level to debug and look for messages?
-
I will look at that but you may not be able to actually run it from there... it's in the built-in scripts in the admin section just for previewing. If everything else works you should copy it to a workflow post-function.
-
@Jeremy Gaudet's answer is interesting, just in case it's not clear he uses the exact same custom field between parent and child, therefore you can use simple JQL to search for either parents or children. In answer to the specific question, you could just return the string value of the option, and use the plain text…
-
Can you create a support request in the JBHV project please, including jira version, plugin version, script, and anything else I might need to reproduce the problem. thanks.
-
;-) ... no problem.
-
This question has been asked quite a lot... the answer is: cfValues['Reset Type']*.value.contains("Citrix")
-
Only improvement would probably be to use IssueService, rather than WorkflowTransitionUtil, but not a bigggie.
-
That tiny button with ambigous selection state should really be fixed - that had me foxed for a while too.
-
CSV import should also work well. I don't think there should be a max file size, within reason. Performance will probably be the same as a csv import.
-
I would convert your data into json and use the json importer. This gives you most flexibility, and unlike the other suggestions, can handle bringing issues directly into the "closed" state for instance.