Comments
-
So, any update? Does this code work?
-
Actually they are same. Anyway, for sure you have to add null check <!-- @@Formula:Object cf1Val = issue.get("customfield_11309");Object cf2Val = issue.get("customfield_11310");Object cf3Val = issue.get("customfield_11311"); Object cf4Val = issue.get("customfield_11312"); Object cf5Val = issue.get("customfield_11313"); int…
-
OK, then try this one int cf1Val = Integer.parseInt(issue.get("customfield_11309")) int cf2Val = Integer.parseInt(issue.get("customfield_11310")) int cf3Val = Integer.parseInt(issue.get("customfield_11311")) int cf4Val = Integer.parseInt(issue.get("customfield_11312")) int cf5Val =…
-
By the way, cf1 is not "customfield_11309" CustomField cf1 = customFieldManager.getCustomFieldObject("customfield_11309")
-
What is your custom fields' (11309, and others) type? And what does below statement return? issue.get("customfield_11309")
-
Hello, You're getting 11111 because you're concating five 1 You should cast the result to integer before adding. Integer.parseInt(...) + Integer.parseInt(...) + ... or (Integer)issue.getCustomFieldValue(cf1) + (Integer)issue.getCustomFieldValue(cf2) + ...
-
You're welcome ;)
-
1. Script Runner has "issueFunction in hasSubtasks()" JQL function but I do not know a way to restrict issues which have 2 or more subtasks 2. Enhancer Plugin has "Linked Issues" custom field. You can use it in JQL function e.g. ("Relates Link Field" > 2)…
-
You're very welcome, If it helped, please upvote/accept the answer for the following usages. Thanks
-
By default the reporter is the user calling the REST service. But you can set reporter if the user (calling the rest service) has "modify reporter" permission, also reporter field should be in create issue screen. In the rest service, add below code to your json body "reporter": { "name": "johndoe"}
-
All tasks for an epic: "Epic Link" = PROJ-1 All sub tasks for a epic: issueFunction in subtasksOf('"Epic Link" = PROJ-1') All sub tasks for a given epic and given task issueFunction in subtasksOf('"Epic Link" = PROJ-1') or parent = PROJ-2 Assuming PROJ-1 is Epic, PROJ-2 is Task and PROJ-3 is Subtask issueFunction is a JQL…
-
If you use Behaviors in Script Runner, you can restrict some dropdown options. The code would be similar as below, I just prototyped, so please check the code import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.project.ProjectManager def customFieldManager =…
-
Hello, Below code checks whether the user in customfield belongs to group ("prod-support") import com.atlassian.jira.component.ComponentAccessor def groupManager = ComponentAccessor.getGroupManager() def customFieldManager = ComponentAccessor.getCustomFieldManager() def groupSupport = groupManager.getGroup("Prod-Support")…
-
The option 'Done' can only appear if there is a transition from the status of that issue to 'Done' status, and also workflow conditions should match. Please check the status of that issues, and see whether there is applicable transition from that status to the 'Done' status, or to a 'Canceled' status (if you have) which…
-
Yes, they are. How about J-Tricks plugin? It has some sort of JQL functions as well, I am not sure whether it requires crucible/fisheye though. https://www.j-tricks.com/jqlt-development-functions.html
-
See this post
-
Enhancer Plugin provides " Assign to a user in a role post function which may be helpful for your case.
-
Sorry, but I think it is time to upgrade your Jira.
-
You should give more details. You can find more about the error under JIRA_HOME/logs/atlassian-jira.log file
-
There is SLA Configuration section in which you can define your own SLAs (except than developers'). If you have further assist, please raise a support ticket here so that app team can help you on your goals.
-
You're welcome Simon.
-
Hmm, if you use Spring Scanner, you should not use component-import. have a look at this issue. https://jira.atlassian.com/browse/JRASERVER-66499
-
Hello, You have to add component-import element in atlassian-plugin.xml See https://developer.atlassian.com/server/jira/platform/component-import/ for more details.
-
Hello, Is that Service Desk's SLA? Only agents can see that countdown in Jira SD. You should use add-on like Time to SLA. It is not only for Jira SD, but also software and core.
-
You're welcome ;)
-
For sure, you have to import it. import com.atlassian.jira.issue.customfields.option.Option;
-
Hello, That's weird. Could you please check for the Watchers field? Do you have a customfield named "Watchers"? Here Jira documentation says: If you are required to specify the values for any required custom fields, the Update Fields page is displayed. Check whether you have Watchers custom field, and its optional/required…
-
You have to give more details. There should be something in atlassian-jira.log file.
-
I'm glad to hear that it works ;)
-
Hello, If select list is not multiple select list, try below script Option option1 = (Option) getCustomFieldValue(Field1); def cv1 = option1.getValue() as Double; ...