Comments
-
Hi @Shahriar , thank you, I'm happy to help. Try to fix it with replacing Number effort = priorityNumber > 0 && storyPoints > 0 ? (6 - priorityNumber)/storyPoints : 0 with: Double effort = priorityNumber > 0 && storyPoints > 0 ? (6 - priorityNumber)/storyPoints as Double : 0 But the error doesn't mind much.
-
Hi @Shahriar , thank you, please try this: import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.issue.CustomFieldManager import com.atlassian.jira.issue.fields.CustomField final String storyPointsFieldId = "customfield_10018" final String priorityFieldId = "customfield_14103" CustomFieldManager…
-
Hi @Shahriar please, which value should be returned, if one of the fields or both are empty? I will try to fix it for you, but this is not clear. Thank you.
-
Hi @Quentin Mahé , I don't think this is possible. You can pass search string as a second parameter of findUsers method, but not regular expression. Maybe you can find these users using your script? It is not optimal, because you will have to go through all the users and it would be better to limit the returned set of…
-
Hi @Quentin Mahé , please try to increase the maximum number of results like this: UserSearchParams.Builder paramBuilder = UserSearchParams.builder() .allowEmptyQuery(true) .includeActive(true) .includeInactive(true) .maxResults(10000) Unfortunately I don't have such big instance now to be able to test it myself. Thank…
-
Hi @Matt , yes, that looks good. I've tried to help with the second problem, I hope it will work.
-
Hi @Matt , it seems to me there could be some problems with the variable types: * IssueResult issueResult -> IssueService.IssueResult issueResult * CreateValidationResult createValidationResult -> IssueService.CreateValidationResult createValidationResult I've tried to fix the ending part where the responseMap is created.…
-
Hi @Quentin Mahé , welcome to the community! I've studied the documentation and it seems to me, that the methods are the same. I would use getAllApplicationUsers, because it is newer. I've tried to find another way to get all users. It returns both active and inactive users. How many users do you have in your instance?…
-
Hi @Dorian Workman , I believe it doesn't matter much, you still should be able to save the script and test it. The problem is in the getCustomFieldValue method - the type of the returned data depends on the type of the custom field. But I've tried to improve it to get rid of the message: import…
-
Hi @Dorian Workman, please try something like this: import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.issue.CustomFieldManager import com.atlassian.jira.issue.fields.CustomField import com.atlassian.jira.issue.ModifiedValue import com.atlassian.jira.issue.util.DefaultIssueChangeHolder import…
-
Hi @Matt , would you please paste your code here? I will try to fix it for you. It is hard to tell, where the problem is, there could be different approaches. When exactly do you try to create the issue? Is it during some transition (i .e. do you use special scripted postfunction)? Thank you.
-
Hi @Kevin Bouman , that's great! Thanks for sharing your code!
-
Hi @Kevin Bouman , the problem is in the mergeQuery method - it expects com.atlassian.query.Query to be returned, but you variable returnArray has some list type. I believe instead of modify mergeQuery method you should create getValues method and put your code there (the part with searching issues and filtering based on…
-
Hi @Mansi - , welcome to the community! I've searched the documentation - it is possible to get the repositories and filter the results, but I didn't find the way to perform the filtering based on the repository content. But maybe we will find another way - why do you need such a thing? What about the branches - did you…
-
Hi @meverestthemes, welcome to the community! There is no such role as a "reviewer" in Jira by default, but maybe we will find some way to achieve what you need. What do you expect from this role to be able to do with your project? Thanks!
-
Hi @helen levich , no, this is the right place. Please just select Script Condition - then the second screen will appear, where you will be able to select Custom script condition.
-
Hi @helen levich , please check: * is the code really inserted to your workflow as a Custom script condition? In the provided picture I can see text Simple scripted condition. * was the first row of the script changed? There should be no word def (passesCondition is already in the binding, you don't have to declare it) The…
-
Hi @Vruchi, please try this: * Open your Service Desk project * Click on the Queues in the left menu * Click on the queue name in the left menu * Click on the three dots button in the right upper corner and click on Edit queue (now you should see the definition screen for the queue) * In the section Filter by click on…
-
Hi @Marzi Goodarzian , would you please provide us information, how exactly does your script look like? I will try to simulate your situation using my Jira instance. Thank you.
-
Hello @helen levich , I believe the problem is mainly in the first row - keyword def should be removed. So instead of: def passesCondition = true use: passesCondition = true The errors you got mean, that you use deprecated methods (those, which are not supported anymore and probably will be removed in the future, but so…
-
Hello @Vruchi , would you please provide us more information like how exactly the queue is defined? It would be great to check, if the query for the queue is valid and if there are some significant differences between this queue and the others, which work fine. Thank you. Please look at this article, where the…
-
Hello @Dev Geek , please look at this thread. Could it be also your case? Please, is it possible to get error message from the response? It could help us diagnose the problem. Thank you.
-
Hi @Manraj, welcome to the Atlassian community! Error 400 means bad request, so there is probably something wrong with the data, you are sending. Are you sure these data are exactly the same and in the same format as Postman create them? Is it possible to get error message not just the code? It should help us find out,…
-
Hi @Dhruv Dixit , there no such method like setCompontNames. But you can get component using it's name and then obtain component id from the found object: import com.atlassian.jira.bc.project.component.ProjectComponent import com.atlassian.jira.bc.project.component.ProjectComponentManager import…
-
Hi @Dhruv Dixit , I believe you can use method setComponentIds(Long... componentIds). Is it possible to share your code with me? Then I will be able to help you better. Thank you.
-
Hi @robot robot welcome to the Atlassian Community! I've found this class: com.onresolve.scriptrunner.runner.JiraClusterHomeLocatorServiceImpl It's the implementation of interface: com.onresolve.scriptrunner.runner.diag.ClusterHomeLocatorService Is it possible to paste your code here? I'm not sure if the founded class is…
-
Even though I'm also happily married, this really made my day :-D
-
Hi @Daniel Robinson , yes, there is a difference. I believe the explanation is this: The first case means - issues, which are not in status (Closed, Resolved, Rejected) right now (but could be in these statuses in the past). It's basically the same like "status not in (Closed, Resolved, Rejected)" The second case means -…
-
Hi @Ammara_Samar , is it possible to use some add-on to achieve this? I would recommend you to use Adaptavist ScriptRunner and create custom groovy script. When this copy action should happen? Like during some transition?
-
Hi @David Gutierrez , welcome to the Atlassian community! It is possible to use HTML - the solution is described in this article. But I would strongly recommend you to use Wiki markup formatting instead, mainly because of the security reasons.