Comments
-
Hi @srinivas kattla , so, you are trying to remove all the issue links, which meet two requirements: * the issue link has specific name * the linked issue has the type Story Am I right? If so, please try this: import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.issue.Issue import…
-
Hi @srinivas kattla , it seems to me, that the script should work. Did you try it without the condition issue.issueType.name == 'Story' , i. e. for all types of issues?
-
Hi @yadeniji , which version of Jira do you have now (i. e. after mentioned upgrade)?
-
Hi @Lorenzo Ferguson , it't not a bug, it's a feature :-). This is how it should work - numbers in the last column/row don't represent the total count, but how many issues have the attribute set. I would recommend you to click on all the numbers - it will show you the JQL, which is used to count the number. If I take the…
-
Hi @yadeniji , please try to replace your code with this: import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.security.roles.ProjectRoleManager final String roleName = "HR" ProjectRoleManager projectRoleManager = ComponentAccessor.getComponent(ProjectRoleManager) def projectRole =…
-
Also method getIssueLinks expects to get link type id (not issue id), so I would recommend you to replace it. Where did you put your code? Is this a post function in your workflow? Code below works for me, but I'm not sure, if it will be good enough for your use case, maybe some more modifications will be needed. import…
-
Hi @srinivas kattla , first of all - please check the name of the link in administration - "Clones" is probably wrong and you have to replace it with "Cloners" Method removeIssueLinks will remove all the links, not only the one for clone, so probably you should use removeIssueLink instead. I would recommend you to add some…
-
Hi @Stefano Veronese , according to this article it looks like there is some problem with custom fields - could it be, that you are sending data for some custom field with type Rank in your create issue request?
-
Hi @kerogos , what exactly do you mean by "accept the issue" - approval functionality in Jira Service Desk? If so, there is an option "Consider approved after" available, when you configure the Approval. If you insert number 1, it should do the trick (any of the five users can approve it and after the approval the issue…
-
@Rodrigo Guariento I've been thinking about your use case - what kind of issues will the external users create? Maybe some kind of problems with your web platform? Did you consider to use Service Desk? Then it would be possible to work with the external users - you could create them as a customers of your Service Desk…
-
Hi @Rodrigo Guariento the users have to authenticate, if they want to send request via REST API. https://developer.atlassian.com/cloud/jira/platform/jira-rest-api-basic-authentication/ Users use their e-mail and generated token. Based on provided credentials Jira checks, if they have access to the Jira and can perform the…
-
Hey @Kirill Ilinich this is great, thank you for sharing. Have you found out, when this was added? I wasn't able to find any information about it.
-
Great news!
-
Hi @[deleted] , I tried to perform the REST api call using provided JSON and URL (just changed transition id) and everything worked fine for me - JSON format and URL seems right. Did you try to perform the call without the field resolution? I was able to get error 400 (which basically means that something is wrong with the…
-
Hi @sijieh , it looks good, basically it means, that your local repository is still connected to the remote repository. Did you try to perform another operations like pull? The described behaviour is very strange and it looks like that something went wrong very badly - maybe there is still some problem with your hardware?…
-
Hi @Jeff Santos , it seems to me, that the problem is, that you have forgotten to add the issues, which have no labels. Please, try this: labels is EMPTY OR labels not in (Recorrente)
-
Hi @Sneha Gole, please check Exclude body parameter in configuration of the webhook in Jira administration. The checkbox should by unchecked.
-
Hi @sijieh is your clone of repository correctly connected to the remote server? (Are there any remote connections saved?) You can check this using following command: git remote -v
-
Hi @Mahendar D , according to the documentation you have to send POST request to URL: /rest/api/2/group/user?mygroupname Replace mygroupname parameter with a name of requested group. You also have to send parameter name in the request body - name of the user you're adding to the group. You can find example of the request…
-
Hi @monitorjakky yes, it is possible. You can find informations about the solution here: https://confluence.atlassian.com/adminjiraserver073/managing-multiple-directories-861253205.html There are also links to related topics at the bottom of the page (how to connect to the directory etc.).
-
Hi @BA , maybe you could use data from the Activity stream feeds? It will not be easy to parse the data from this source, but you can get the data for a specific user.
-
Hi @Sneha Gole , did you try to check atlassian-jira.log? If the remote systen doesn't "catch" the webhook POST, there should be record about it.
-
Hello @Tom Horton , yes, you can send an email to Jira users using available functionality in Administration: Administration > System > Mail > Send email
-
Hi @Fomin Dmitriy I've just tested your code and it worked for me. On which event(s) do you fire this script? I've tried it only with the "Issue Commented" event. How is your scripted field defined? I've inserted only random text value without any code. Which version of Jira/ScriptRunner do you have?
-
Hi @osmanraifgunes , I believe the problem is in authentication. Please, try to use the email address that was used to generate the token, when you create Authorization header for your request. I've got the same response, when I had provided an invalid e-mail.
-
Hi @Sneha Gole , that looks good! Were you able to get the data in the other application?
-
Hi @Ase IT, did you find any way how to resolve this problem? I've been thinking about it and I found out, that maybe you could do it using Jira backup functionality: * export all your data to your filesystem * replace all the strings you need using some text editor (find and replace the strings using regular expressions)…
-
Hi @[deleted], which method do you use for authentication against the Jira REST API? Is it basic auth? How does the response to you requests looks like? Is it possible to share it? Thank you. I just want to bude sure, that you are able to get any data using REST API, than the next step is to get the right one :-).
-
Hi @ericreiner I just tried to get projects from my cloud instance using GET /rest/api/3/project/search. (I used Postman application with basic authentication: username + api token.) Everything worked fine for me. Which response code did you get? (return successful = code 200?) Was there any message in the response? Is it…
-
Hi @[deleted], according to the documentation the request body looks different for Jira Cloud: https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-rest-api-3-issue-issueIdOrKey-comment-post That's why you get error code 400 - Jira wasn't able to obtain comment text from your provided JSON.