Comments
-
Hello @[deleted] , I have the same problem to resolve, some 40 custom fields in multiple field configurations. Can you please let me know if you have solved your problem and the approach? If I follow Mark Markov's note, only default field configuration is changed. Thank you with warm regards ramki
-
@[deleted] Confluence does not allow duplicate page title in a given space, "DEMO". I have given a menu to user to copy the page but it is possible user can click that option multiple times at different times. So, every time when user clicks the copy page, if it was already copied earlier, I delete that and do deepCopyPage…
-
@Alexis Robert Thank you again, I tried escaping it did not work. I continued my attempts. This worked when I changed the line from #elseif($paramGroupByField == "name&product") to #elseif($paramGroupByField.replace("&", "&") == "name&product") added .replace("&", "&") to the user input parameter variable. not sure about…
-
Hi @Alexis Robert Thank you for the response. I will try that in my staging setup, but do you think that the problem not recognizing enumValue option with "&" can arise from other add-ons. My knowledge here is limited so please bear with me for this very basic question. Also, I found that if I change the option from…
-
Hi, If JQL is not helping and if you have read-only access to jira database, how about this SQL query SELECT * FROM changeitem AS ci LEFT JOIN changegroup AS cg ON cg.id=ci.groupid WHERE ci.field='labels' AND ci.oldstring NOT LIKE '%SOME LABEL%' AND ci.newstring LIKE '%SOME LABEL%' AND DATE(cg.created) BETWEEN '2020-08-01'…
-
Hi Jonny Carter, Thank you for your answer, keeping that as a base, I could complete customization of pdf export with some workaround way. For other users who might visit this page, I created a discussion thread here…
-
Hi, Referred link: https://community.developer.atlassian.com/t/setting-a-new-confluence-space-homepage-using-java-api/2842 This has worked for me to copy from space "ABC" to space "DEMO". import com.atlassian.confluence.event.events.content.page.PageEvent import com.atlassian.confluence.pages.PageManager import…
-
Hi Andrea, Thank you for the response, with further learning I had on this subject actually it is not required to create child pages and all. With your script as the base, developed Confluence REST END point given below. So, the variable String outputPageBody = pageBody + appendedText does not look like limited by the…
-
Hi Andrea, Thank you, because of the script you provided, I could get started. I am sure you would have found an answer by this time for your question, still if I can share my views on this topic for others who might visit here, due the maximum string limitation (65536 characters is my understanding) which hits (I tested…
-
Hi Lasse Langhorn, Thank you, it worked for me. regards ramki
-
Hi, When I googled for jira script runner create issue "setAffectedVersionIds" I get this link first. Thought it might help someone to add AffectedVersions. The following lines helped me //oIssue is the original issue from which I am creating a new issue def affectedVersionIds = oIssue.getAffectedVersions()?.collect…
-
Another way of doing this which I felt more easy if we want canned report as a macro output. The reason I took this path is because I could not figure out how to pass javascript/ajax call output back to groovy domain. Use case, * From confluence goto JIRA and get some custom field values of a Project (Bitbucket Project and…
-
Hi Amulya Akula, Thank you, I am familiar getting the json data using the REST API, the request was for equivalent SQL query so that we can use either Script Runner or SQL Pro add-ons to prepare the report we wanted. So really looking for relation between lastestCommit and hash for a tag through the REST API mentioned in…
-
Hi Austin, Thank you for your post, I have tried nesting with chart macro and successful. But the charts are very basic and I dont have much control. I was going through the chart.js documentation but could not figure out how to nest Chart.js inside a user macro, Can you please share that part where you nested chart.js in…
-
Hi Steve, Thank you very much, it will really help me because my log file has grown really big because of this. Let me attack my listeners now, with warm regards ramki
-
Hi Steve, I have the similar issue, can you please share the issue number, if possible I can add my observation there Thank you regards ramki
-
Thanks to Nir Haimov, I added more code here what I could achieve with his initial code; I posted some of the scenarios here, not extensively tested, thought it might be helpful to anyone looking further.
-
Use Case: get JIRA issues used between two Tags from Atlassian Bitbucket Server into a scripted field in JIRA Assumption: JIRA issues are entered in all Bitbucket Commits; JIRA is configured with BITBUCKET server application link and user has required accesses Use Script Runner Scripted Field to create a custom field; add…
-
Use Case: get all repos of a given Atlassian Bitbucket PROJECT and show them as single Selects in JIRA Use : Script Runner - REST END POINT and Behavior on that custom field Assumption: ; JIRA is configured with BITBUCKET server application link and user has required accesses Create REST END POINT g2_get_repos Note the…
-
Use Case: from Atlassian Bitbucket server get commit data between two tags of a given Project and repo in that project; Use Script Runner - script console to run this script Assumption: JIRA issue entry is mandatory in commits. ; JIRA is configured with BITBUCKET server application link and user has required accesses…
-
Hi Nir Haimov, Thank you for the response, yes I am using script runner. Let me try and give it a shot with your code as base with warm regards ramki
-
Hi Nir Haimov, Thank you for sharing this, if I can ask some more help, our requirement is to fill a JIRA custom field by accessing Bitbucket; compare two tags in Bitbucket using REST API and get the JIRA issues used to commit between those tags. This fill may be required during a workflow transition. So, how I can add…
-
I solved it with steps below * Deleted all the 15 Single Select Branch Custom Fields * Picked-up one Project "ProjectX" which by itself does not have Versions* ProjectX is the one where my Requirements are created and for the solution we have to have Product 1 to Product 15 project picker custom fields and their Branch…
-
logging to the server is working but to the console after the create is still not working for me
-
The following code works; observe * first of all, it is addCustomFieldValue * that project picker id has to be converted to string * user has to be username * customfields passed should be with their ids…
-
Thank you Nic Brough, I will try the link and/or other options,
-
Looks like my trial is working, posting the working Behavior code here, reference article: https://community.atlassian.com/t5/Adaptavist-questions/Scriptrunner-behaviour-Setting-select-list-options-None-is-not/qaq-p/934238 import com.atlassian.jira.component.ComponentAccessor import…
-
hard luck, the user responded that he is using English as the profile, still I am seeing Chinese character in last date and current date
-
Thank you Bill Bailey, I will try your first suggestion, asking one of them to try English profile setting.
-
I added one more condition to make sure there is indeed a project category associated to the project object, the below code worked for me; lookout for if(it.projectCategoryObject) condition in last section import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.project.ProjectManager def…