Comments
-
In ScriptRunner you would do: issueFunction in subtasksOf("issuetype = monthlymeeting and created > -1w") and customField = monthlymeeting although I'm not really sure the purpose of the custom field.
-
In addition to John's answer... script runner has an expression JQL function that allows you to compare if values are the same, different, greater than etc. Examples and docn here: https://jamieechlin.atlassian.net/wiki/display/GRV/Scripted+JQL+Functions#ScriptedJQLFunctions-expression(Subquery,expression)
-
You need a listener for that. You can write your own plugin, or you could try using scripted listeners: https://studio.plugins.atlassian.com/wiki/display/GRV/Listeners https://studio.plugins.atlassian.com/wiki/display/GRV/Built-In+Scripts#Built-InScripts-Firesaneventwhenconditionistrue That second link is to a "built-in…
-
Oops, missed that tag.
-
Install the source editor to get at the xhtml.
-
It would not impact any other functions, but if you are using its workflow functions you can't just disable it, you need to remove the functions too. This is the same for all plugins.
-
Agree with Bob although not necessarily about the mechanism. Personally, I have a maven dev profile that includes junit and spock, and it will search out unit tests so they can be run from within jira. I've tried many approaches including mocking, and the SDKs own integration test runner, and imho this is by far the…
-
Something like this: componentManager.getCommentManager().getComments(issue).last().body Might need to check that getComments returns a non-empty list before calling .last on it. I have a feeling it will be in transientVars... you could dump that and have a look.
-
Yeah this is a known but that seems to affect more recent jira versions. The issue is reindexed, it's just that the page is rendered with a version of the issue object before the status change. It's in my backlog.
-
You can browse to the code from within the app - add the post-function, then click the view source link. https://studio.plugins.atlassian.com/wiki/display/GRV/Built-In+Scripts#Built-InScripts-Fasttracktransitionanissue > Do you think I am on the right way? Without having full access to the requirement hard to say, but to…
-
> javax.script.ScriptException: javax.script.ScriptException: java.lang.IllegalStateException: You can not transition an issue with an invalid validation result. It's telling you what is wrong... check the issue service javadocs, you need to look at the validation result (which has errors) before trying to do the…
-
This is an irritating bug that affects the params of just this script. Until the next release, if configuring this script, you have two options. Either, update the workflow manually to be as it should be, which you already know. Can do this through importing or directly editing in the database etc. Or, using simple…
-
Seems there is some kind of issue with that one. I will look at that tomorrow.
-
It's probably easiest to write your own, here is one that gets the priority of the provided issue. Just drop it in the directory as per https://scriptrunner.adaptavist.com/latest/jira/custom-jql-functions.html#_quick_start https://gist.github.com/jechlin/08b6b73d6e2be52ddad5d3f37736a63d
-
Oh, didn't realise you were talking about greenhopper.
-
Not sure I totally understand... you can prevent popups for the resolve dialog by putting the following in the announcement banner. You should be able to do it through disabling a plugin component, but I can't find which one right now. <script type="text/javascript">(function($){ $(document).ready(function(){…
-
Perhaps any user's first one or two questions/comments/answers have to be approved by a moderator, after that they're free. No self-respecting spammer would bother to come up with a valid question.
-
You can't (easily) have conditional targets for the action. The common strategy is to have two actions with the same name with different conditions. Make sure the conditions are mutually exclusive to avoid confusion. If you do that the net result as far as the user is concerned is the same as having a conditional target.
-
No, it sounds like you are using JIRA Misc Workflow Utilities.
-
You've just got to think through the logic. Don't try to do it in a one-line... if (field) { check other field}else { other field should be empty} etc
-
Look into ^, which is the xor operator. You want either Yes and a duration value set, or No and no duration value. So it should be Downtme Requirement == No xor Downtime Duration
-
I'm not sure what you're expecting here - I can see that that evals to false. I can't even remember what the original problem was.
-
It's not showing, can you add it to the question or something, or maybe upload it somewhere else.
-
> Any update Jesus... I do sleep you know. Can you paste a screenshot of condition tester. I don't believe this eval'd to true.
-
try using asserts in admin->built-in scripts->condition tester. See https://jamieechlin.atlassian.net/wiki/display/GRV/Built-In+Scripts#Built-InScripts-PowerAssertions
-
But you've used a field name of CustomField1, when you said the field name is Downtime Requirement...
-
Post the code you're actually using...
-
Try <log:warn>. If that works then log4j will be suppressing log messages less than warn for that package. You can adjust that on a permanent basis by editing log4j.properties and restarting. http://confluence.atlassian.com/display/JIRA/Logging+and+Profiling
-
Versions? Any errors in the log? Provided samples can be out of date.
-
Can you clarify this. You have a workflow function on the parent issue that creates 3 subtasks, when the parent is created? On the subtask workflow, you have a fast-track workflow function that should move them to the next state? But it only works for the third, even though there is no difference between the 3 subtasks?