Comments
-
Hi! So I took a look at this answer, and using a script postfuntion like it explains there still works fine. I'm a little bit worried on your stability though, because you are running a very old JIRA version that is already in EOL, and the free version of SR, which is no longer updated. If I could recomend you anything,…
-
Hi. The short answer for that is no. But I can confirm that this is in our backlog and it will be worked on at some point in the near future. If you need anymore help, please let us know. Cheers Dyelamos
-
Hi Erik. May I recommend that when using groovy and defining classes, if you are not using any of their methods, you use the keyword "def" rather than the type. It really helps with dependency problems sometimes. In this case you don't even need to have the class imported, since your object isn't being called at all, and…
-
Hi. We seem to have a pretty similar examples to what you are doing in our documentation. Can you have a look here and tell me if this is what you are looking for? Cheers! Dyelamos
-
Sorry. I posted in the wrong thread.
-
Hi Swapnill. That is an inline error, not a compilation error. The script could be working at compilation time. Could you save the script regardless and try to see if the script works? Cheers! Dyelamos
-
Hi Andrew. Alaeksander is right. That should work. "underlyingIssue" is the object that the DB currently has before it is updated by your form. Can you tell me how you have setup your behaviour? Cheers Dyelamos
-
Gaston is absolutely right. You need a Validator Alfred. If you need hel setting one of those up let us know! Cheers! Dyelamos
-
We are seeing some disturbances in a few services including HipChat as well. Maybe something is off.
-
Isn't that done automatically? When I create a subtask it links the parent on its own
-
Hello Connor. I believe this can be done with the SR Create Subtask post function. Since it is a sub task, it needs to have a parent, so if you were to add this post-function in te onCreate transaction, it would create the subtask that you are looking for. This is the dialog that you need to fill, and it can be accessed in…
-
Hi Simon. Yes this is possible. You would call your rest endpoint using something like what I recently answered in this question. After that, in the response.success clause, you would load the JSON into a map with a JSON slurper, and then load it on the field as a list or a select, I suppose. There is quite a lot of…
-
Marked as a duplicate of: https://community.atlassian.com/t5/JIRA-questions/How-to-find-Total-Remaining-time-for-an-issue-and-all-its-child/qaq-p/613666
-
You can most certainly try, but I wouldn't recommend you do. Sometimes Atlassian removes deprecated methods, or they change a bit of the innerworks. This could result into errors, and most importantly we wouldn't support any issues, or be responsible for anything that happens to your instance if your product version is not…
-
Hello. I cannot give you a ETA yet, but I can tell you that it will be worked on in a very near future. We will keep you posted on any new info. Cheers! Dyelamos
-
That means that the validation is getting a fail. Which means that you are feeding the wrong data into the creation of the validation.
-
Take a look at this. You can get that component by: ComponentAccessor.getGroupManager() Hope this helps. Cheers! Dyelamos
-
Qi, I cannot help you if I don't know what the error is. Please provide me with the exception that you are getting and I'll look into it. Cheers Dyelamos
-
Yes you could. I imagine that what you want to do is create a list of functions accessed by a login params that project admins could acess so that they could: 1. Add users to groups 2. Remove users to groups 3. Grant permissions. and many more. It might be a bit too much work though. Do give more information if you need…
-
well you would do it as I told you. You get the id of the field you want to set to empty, in your case that's SPEP I believe and you do this: SPEP.setFormValue("") Tell me if this works.
-
If you are in behaviours you need to use something like this: getFieldById(SPEP.id).setFormValue("")
-
Can you send the whole of your script? I might be able to help you better with more information taher. I want to help you mate but you keep sending very little info, and that doesn't really help.
-
yes, that should work in the behaviours part of SR. Oh wait, aren't you using SR at all?
-
Ow okay. Now I get you. First of all I don't think groovy regular expressions accept asterisk expansion, but if you say that works for you, I might be wrong. If your code above does filter the right string, then: You need to fetch the MutableIssue from that Issue. That issue has a method called setDescription. I believe…
-
Hi Taher. Your description of your issue is rather shallow, so I'm going to try my best with the little information that you provided. If you have 2 fields, A, and B, and you want to reset A when B is changed. You need to set a behaviour on field B, and when it gets changed, you need to change the value of A to "empty"…
-
Hello Jean-Michel. This is an easy integration test and an excellent case study. I would however recomend that you hone your scripting skills by going through the examples that our documentation has. I will provide links for the docs of both producs, these documents have examples for what you want to achieve and you should…
-
Hello Bartek. Before recommending you anything, I would advise you create a test project in which to test the two methods I'm about to recommend, so that you don't break anything in case I'm wrong :D I have asked a senior in my team, and they've recommended you use com.atlassian.jira.issue.IssueManager#updateIssue with the…
-
Hello Jean-Michel. I suppose that you own SR for both Confluence and JIRA. If that is the case, then you need the following setup: -------------------------------------------------------------------- In Confluence: 1. A REST endpoint that can be called from JIRA. This REST endpoint should take an argument, which should be…
-
Hello Abyakta. I already answered your request in our service desk, but I think this is a very good example to place here, so I'm going to repost this. This is a REST GET endpoint that will successfully add a user to the group "jira-administrators" import com.atlassian.jira.component.ComponentAccessorimport…
-
Hi August. That doesn't have to do with JIRA. What you need to use there(first argument of the function "replaceAll") is a regular expression. I myself am not an expert, but I can recomend this article, that will teach you how to use that "...description.replaceAll(...)" If you find anymore trouble, please do respond, and…