Discussions
-
How to export pdf via REST API?
Hi, I'm trying to write a simple Groovy script to communicate with our Confluence server instance and get done automatically the export to pdf o a page whose ID number is known. I already communicate with Confluence this way to get information about pages, etc... but for this particular task I'm not getting to a solution.…
-
How to read a text file attached to an issue with scriptrunner?
Hi, I'm trying to read a text file attached to an issue, using a script. Here below the code I'm trying to use: import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.issue.comments.CommentManager import com.atlassian.jira.issue.AttachmentManager import…
-
How to fix the relative width of table columns when exporting a page to pdf?
Hello, I'm trying to configure a proper pdf stylesheet in Confluence, and I'm not getting to a solution. Given a table, which turns out to have the following storage format <table class="wrapped fixed-table"><colgroup><col style="width: 136.0px;" /><col style="width: 267.0px;" /><col style="width: 125.0px;" /></colgroup>…
-
How to generate a tip or warning report in a confluence page?
Hello, I know and make use of the task report in Confluence. Extremely useful. What I'd like to do is to generate the same kind of report, creating a dedicated macro that a user could place in a page, regarding warnings, tips, etc .... that might have been placed in some pages of one or more spaces. I actually imagine the…
-
Is it possible to show logs from scripts in Scriptrunner console without collecting them ?
Hi, I sometimes generate long lists of log statements, while debugging scripts used to extract data from spaces, pages, etc... These are all collected in the atlassian.confluence.log, as I see. I'm starting to define a specific logger, for later easier reading, but in some cases I'd like to not have those logs recorded at…
-
Confluence editing quicker with Firefox?
Hi, I normally use Chrome for everything, including working with Jira and Confluence. Today I've noticed something strange, when trying to edit a page with a quite long table. Each row of this table include text, hyperlinks, date pickers, attachment references, user mentions, etc. Very few images. About 130 rows. When I…
-
Date picker still not adjustable in format?
Hi, I saw some old post on this, but I wonder if there's still no way to adjust the date picker format. It's really frustrating, we have user interfaces in English (US) and in Italian, and I need to keep it this way. Regardless of these settings, I'd need to make dates (introduced with //...) to be shown (and exported,…
-
How to use ContentService instead of PageManager?
Hi, in my SR scripts I often use PageManager methods (especially getPage()) to get information about pages. As by https://docs.atlassian.com/ConfluenceServer/javadoc/7.9.1/ I noticed that getPage() is deprecated, and ContentService.find() is recommended. Sorry to admit that I've never used yet succesfully ContentService to…
-
An efficient export procedure (exit strategy) is a must for accepting to move to Cloud.
Hi, I'd like to share my thoughts about the Atlassian's decision to change the licensing model. Because this is the most critical factor, at least in my company. It's not the move from local to cloud, it's the move from perpetual to yearly. We're happy with our server instances, and we're happy to renew our maintenance…
-
Search for unused attachments in server instance
Hi, I've finally made un update of my initial script which I described here . Now it checkes all the pages in our instance, and write the output in a Confluence page. Quite sure many people here have already more sophisticated ways to do the job, but if this can help rookie-admins like me, then I'm happy. I know I should…
-
Are cloud performances expected to be improved ... now?
Hi all, I'm not that happy with the message in my mailbox today. We were extremely happy with our Confluence and Jira server installation. We were already getting benefits from the cloud, as we were installing our instance on AWS cloud. It's a cost, but works well and it's very fast. Working with this configurations it's…
-
Search for unused attachments in page
Hi All, after having read this article, I wrote a short script to compare the filenames of the attachments actually used in a page with the filenames of the files actually attached to the page. I'll make it then cycle through the various spaces to look for the many attcahments that users have been draggin in and then…
-
How to avoid mentioning (or recognize) users with no viewing permissions?
Hi, given that the case of trying to mention users that have no view permission on a page should be probably not frequent, indeed it happens sometimes. If I'm the person who's mentioning somebody on a page, or on a comment on the same page, how can I realize that this person won't receive any notification? I might be…
-
What happens if I change password policy?
Hi, what happens to users if I, as an admin, change the password policy? I mean, what happens when I click "Update", as by the below picture? Do users with poor passwords receive any kind of message requiring them to change it? Thanks, Ciao, Andrea
-
Append Content to page with Scriptrunner: size limits with getBodyAsString() & setBodyAsString()?
Hi, I've managed to append content to an existing page in Confluence by scriptrunner console. Below a sample of the code I'm using, which I know it's far from being an elegant programming example, :-), but in the end it works, and I'm using to introduce text, tables, etc... //Libraries import…
-
How to get the deletion date of a trash item?
Hi all, as an admin I want to periodically empty the Confluence space trash, but I'd like to do it (manually or by a Scriptrunner Script) based on how much old are the files in the trash. In the space trash view I can't see the information I'm looking for (the deletion date)? It's OK also to get it by a SR script, if…
-
Unpublished Changes to page when trying to update it by Scriptrunner and Rest Api from Jira?
Hi all, I normally code some scripts in scriptrunner to get information that I then copy into pages in confluence, to obtain personalized reports, etc... Nothing strange. In the last days, I had issues with a script in particular, when it seems that under some circumstances I'm not getting a new published pages, but only…
-
How to list labels in Confluence where the first character is not a letter?
Hi, we have labels around confluence pages in this form _corda, _small, etc... These labels are not shown in the label list macro output. Seems like the macro can only categorize by starting letters? I have already a lot of labels around in this form... In the picture you can see the label list result in one space, and…
-
How to get an issue description from Jira and render it in the same way in a Confluence table?
Hi, this is midway between Jira and Confluence (server). I need to generate a summary table from a list of Jira Issues in a Confluence page. I can't use the Issue macro in Confluence, because the people who will have access to the page won't have permissions in Jira, so they just would see an error message in the field in…
-
How to update Jira issue field values after editing from an excel file?
Hello, we're handling requirement lists in Jira, using also the Structure plugin by Alm Works. Sometimes we export the issue data to excel files, because we need to populate some fields based on calculations. After having completed the calculation, we'd like to find, if possible, a smarter way than filling in each issue…
-
How to retrieve more information from a Jira Structure by Scriptrunner?
Hi, our projects (industrial R&D, non software) are led with hybrid approach. High level plan and some wbs elements follow waterfall approach, while for some wbs sub elements kanban or scrum is perfect. Due to this, we're working very well with Jira + Structure by Alm Works (Great product). I need to retrieve information…
-
Hi All
Hi, I've realized I had not yet introduced my self in the community, while already having started to navigate this site quite frequently. I'm a project manager in the industrial manufacturing field, trying also to act as PMO for my company. My scholar background is mechanical engineering. I've been working for several…
-
How to get the list of pictures attached AND inserted in a page with Scriptrunner?
Hi all, I'm trying to write a script to get a list of the picture/files which are actually used in a page, and not just attached to the page. Starting from some scriptrunner templates/tutorials, I got to the point where I can list in a table the pages within a selected space, and in each row of the table I write the page…
-
Script or Macro to list page attachments and their incoming links
I'd like to list the attachments of a Confluence page and their incoming links. Typical use: a page with lots of attachments, several of them are there just because initially attached, but actually not referred to from anywhere in the page, and not even from any other page in Confluence. I'd like to have an easy tool to…
-
Do we need Jira software even if we don't develop software?
Hello, I'm part of a company developing industrial components, not software. We've been enjoying the use of Trello Boards for some time, in conjunction with our local project management applications. With Trello we basically represent on boards the tasks we define and schedule with a local application (MS Project+other).…