Comments
-
In the most recent version you can use the initialiser function. In all cases other than create there will be an issue already created, so you could use something like: if (! getUnderlyingIssue()) { getFieldById("duedate").setReadOnly(true)}
-
You need to install the latest version, from 2.1-BETA-X... if you have jira 5.0 or prior you can't update to this plugin version.
-
You can use projectMatch function from the script runner plugin. project in projectMatch("ABC.*")
-
I see the same problem in confluence 4.2.8, latest version of upm. The actual message in the log is a 404 from marketplace, but the UI shows the "not reachable" message. Attaching stacktrace in case any use to Atlassian: 2012-07-20 12:46:18,362 WARN [scheduler_Worker-3] [upm.notification.cache.NotificationCacheUpdaterImpl]…
-
Looks like you need the right version of this plugin: https://plugins.atlassian.com/27136
-
Hi Steve... for a post-function you just want a plain old groovy script. They are simpler than listeners. Implement CannedScript when you want another built-in script, ie one that can be parameterised and reused... But the internals of it are not well documented or exposed to end users. Don't you just want a plain old…
-
Sorry... don't think there is a super simple answer. I think the problem is that many classes, eg that one, is not in the jar as a .class, it's in there as source. When scripts get loaded the first time then all the dependent stuff is compiled (inside of jira). This is partly due to the mechanics of the groovy compilation…
-
Only a couple of them use that factory. What is it you are trying to do?
-
You may need to update the UPM plugin as this was only added relatively recently.
-
Cannot cast object '10002' with class 'java.lang.String' to class 'java.lang.Long' Not sure which bit of your code is failing but it needs casting to a long, eg thing as Long or "new Long (thing)"
-
Have you definitely mapped this behaviour to this project, and that there are no other behaviours also mapped (just because it will confuse debugging)?
-
I think we are having the same conversation here https://studio.plugins.atlassian.com/wiki/display/JBHV/Miscellaneous+Behaviours+Examples?focusedCommentId=67797592#comment-67797592 right? There are two problems. That is only sample code, so unless you have components called Component 1 or Component 2 then neither of the…
-
if (issue.summary.contains "P1") ...
-
It's just a variation on the above. What have you tried so far?
-
Try the two parts separately in the admin -> built-in scripts -> condition tester. That I was quick was just pure coincidence by the way.
-
If Patch Type is a select list, it should be: cfValues['Patch Type'].value == 'Patch'
-
NB - rambanam's answer relates to using a standalone groovy script. With the "simple scripted validator" you just provide a statement that evaluates to either true or false, and provide the error message. You don't need to worry about throwing the exception.
-
With a simple scripted validator, you just need: cfValues['customfield_10000'] If you want to ensure it's empty use: ! cfValues['customfield_10000']
-
The error you get about SSL doesn't really correspond with the port dropping off. Is part or all of fisheye using SSL?
-
You can use the behaviours plugin alone, although you might find it easier to use the "fields required validator" from jira suite utilities plugin. Just adjust your workflow so that the resolve action has a validator requiring this field. The behaviours plugin can help here because you can create a behaviour, and check the…
-
The way it works is confusing... the properties file appears to update the list of repos only if they don't already exist (in the database). Instead of adding repos through the properties file, which is hard to maintain as you need to bounce jira every time, add them through the UI. Admin -> Repositories.
-
Easiest thing to do then is just put something like the following in to your announcement banner: <style type="text/css"> #issuetable td.reporter { font-size: 18pt; }</style>
-
That looks about right, but, jira probably serves the minified version so you may need to minify it. Note also there is a global-static-ie.css. Don't forget that browsers have probably cached this file. Hence my world of pain comment if you go this route. Consider using a plugin with web resource contexts, or even just…
-
See my answer below then. You can customise the styles for different columns as you need.
-
(or mousewheel). +1 from me for the obvious answer. See below for the "world of pain" answer.
-
You could find the file global-static.css, look for the line similar to: #issuetable td {line-height:1.286;padding:5px 7px;} then modify it to include font-size:14px or whatever you want. A better way might be to include your own css for the jira.navigator web resource context, if contexts were available for your jira…
-
If you used a numeric field for SLATime, eg 180 instead of "-3h", you could use the expression function in the script runner plugin. This is much harder than you probably think, JQL wasn't really designed for this kind of sql-like concept. The query would be something like: issueFunction in expression("project = SD and…
-
You can use behaviours, a part of script runner for that.
-
To just check for the presence of an app link you can use: import com.atlassian.applinks.api.ApplicationLinkimport com.atlassian.applinks.api.ApplicationLinkServiceimport com.atlassian.applinks.api.application.confluence.ConfluenceApplicationTypeimport com.atlassian.sal.api.component.ComponentLocatordef…
-
I haven't seen that befpre - in the first instance can you try just disabling the enabling the plugin, if that doesn't work restart jira. Do any other functions work? If all fails can you get me the log from startup and including this failure...