Comments
-
Thank you, and you're welcome.
-
Great. You can mark your answer as correct, and vote my comment up for putting you on the right track ;-)
-
OK... i'm not sure. Try putting the display name in angled brackets after the address. You might need to experiment a bit....
-
Unfortunately I just see broken images. If you add a new answer, you should be able to attach images...
-
Hrm... you can set the From address to be whatever you like, in 2.0.0 of the plugin. Is that what you mean? Or do you want it to be programmatically driven? Couple of screenshots would help us understand what you need here...
-
> I am not that into coding For your requirements you will need to get into coding... there isn't off the shelf solutions for such specific requirements.
-
Isn't it just a case of multiplying by 1.15 ?
-
I don't really understand. If you want the field to be updated as soon as the user changes a field, but before they submit, you need to use javascript or the behaviours plugin or something. I have no idea why the tab key would have any effect on a calculated custom field.
-
What do you mean "but I should use the tab key on the keyboard" - the field will only be displayed in view mode, so there is nothing to tab to.
-
Agree... post-functions/listeners are overly complicating this.
-
Either really but I meant a script listener: https://jamieechlin.atlassian.net/wiki/display/GRV/Listeners
-
You'd need to add it as a listener. But updating a field is a bit more complicated in a listener. You can use very similar code in a scripted field: https://jamieechlin.atlassian.net/wiki/display/GRV/Scripted+Fields
-
Go for a listener then.
-
You should just be able to delete the where you define and initialise the issue variable. That will be set in the script binding. But you need to call setCustomFieldValue or something.
-
Hrm, you might not have permission to that DN. See http://confluence.atlassian.com/display/JIRA/User+Management+Limitations+and+Recommendations#UserManagementLimitationsandRecommendations-SpecificNotesforConnectingtoActiveDirectory , 4th or 5th point.
-
You need to set the user object filter under "user schema settings". There you need to filter for only users that are members of your group... using the memberOf attribute. Eclipse directory studio or JXplorer is useful for testing this stuff.
-
You could install a Quartz job that flushes the mail queue every 5 seconds, then you wouldn't have to handle creating the mails etc. Personally I think if people can't wait one minute for an email something is wrong with your working practices. Unless, you're using emails for some sort of integration, which I think also is…
-
Not sure what you're doing wrong there, probably nothing. Can you try with a simple script from the console, to rule out problems with permissions: import com.atlassian.jira.component.ComponentAccessorimport com.atlassian.jira.issue.attachment.CreateAttachmentParamsBeandef attachmentManager =…
-
Sounds like a possible deadlock. But I don't think it's anything intrinsic in the plugin, there are plenty of large sites running many script functions all day. You need to get a thread dump when the system becomes unresponsive or when the bad behaviour starts... how you do that varies depending on the server OS, but…
-
It should certainly be possible from the perspective of whether the rest apis can do it. I'm not sure if you can write to local disk to be honest, but anyway, you should be able to stream the output of one call to the input of another. Or just hold the entire attachment file in memory. @Jon Mort (Adaptavist) - any ideas?
-
You're right, in my example I had the "as ApplicationUser" in the wrong place, it should have been inside the parens. Better though just to check it for null then do something else.
-
It's going to fail when issue.getCustomFieldValue(CustomFieldObject) is null, as there are two methods for com.atlassian.jira.user.ApplicationUsers#from. In groovy, method selection happens at runtime. So you can handle the null value yourself, or force one or other method to be selected by using…
-
/jira/rest/api/2.0.alpha1/version but that won't be that useful.
-
That information is not stored in the database... even if you caught it in a listener I don't think you can get the user. Best might be to configure good access logging and check the logs.
-
[ "New Feature", "Improvement"].contains(issue.issueTypeObject.name) If you look at the javadoc for Issue you will find this...
-
OK... so just to take the first one only, the condition you want is: issue.resolution?.name == 'Entered into Product Backlog' && cfValues['Severity'] == "Level 1/Critical" You can do that with 3 separate post-functions as you are doing, or you can work out the priority in the additional code with similar code.
-
You're still confusing = and ==. All your conditions are evaluating to true. In your conditions you probably want == , ie test for equality. In the action field you probably want =, ie assignment. In the condition unless you are && or || ing the statements together all except the last one will be ignored. So it's really…
-
I've flagged it but I'm not going to get to it tonight.
-
note - change field names and values, obviously.
-
Alright I have actually tested this:if (cfValues["MultiSelectA"] && cfValues["MultiSelectA"]*.value.intersect(["AAA", "BBB"])) { if (! cfValues["Subcomponent"]) { return false }}true