Comments
-
Since this is under the Questions for Confluence category, I'm assuming he means how do you download all the Questions from Questions for Confluence, since it is an Atlassian "app." I don't use Cloud (we use Data Center), but I have also thought about how to do this. I know with Server/Data Center, I can probably pull the…
-
URL Defense is: Proofpoint’s industry leading email analysis solution, to provide small to mid-sized enterprises with URL Defense, the only service that effectively detects, catches and analyzes malicious URLs targeting this market. So, I'm guessing the URLs of which you speak are in email notifications you're getting from…
-
I've already seen the ScriptRunner documentation. I was wanting to see the Java API documentation for the class so that I know, for example, what object type "rows" is so that I can see what further methods are available. It's almost never a good idea to update the database directly. So, no, I am not planning to do…
-
The REST API you're looking at will give you the content information, it won't actually do anything like share the page. /rest/api/content You could get the pageId from it, though, to use in the other REST API call below. I'm just going to assume you're using Confluence Server or Data Center, since that's what I know, and…
-
You have the tag of "server" on this question, so I'm going to assume you are using Confluence server (or maybe Data Center?). See Using Personal Access Tokens for how to generate a Pat for Confluence 7.9+. If your version of Confluence is <7.9, then you'll need to use basic authentication with base64 encoding. I don't…
-
You could use: def log = Logger.getLogger("com.acme.*") instead of def log = Logger.getLogger("Log:") I don't know what "Log:" is. Something about that looks off. Also, unless I'm using the log inside of a class to be called from another script, I just use this one liner. No need for anything else. It's so much cleaner:…
-
Instead of logging, you could put the "log" messages into a variable, then use "return" at the end to display the contents of the variable. They will appear in the Console's Result tab instead of the Log tab. This would allow you to keep your "console visualization." Each time you run the script in the Console, though, the…
-
Unfortunately, $pageManager.getPage(id) is also deprecated. The space key and page Id are what were in the example in the first link I posted in my question. I'd still have to somehow declare the Expansion, its properties, and fetch. Regardless, I looked at the macro's requirements and figured out a way to avoid having to…
-
Users who are removed from Active Directory, like those who have left a company, retain space permissions. They are listed as "Unknown user (hisUsername)." I, too, would like to be able to do a cleanup of these users since they should no longer have permissions to Confluence spaces. I did find the article: How to get a…
-
I am a Confluence admin. Unfortunately, we're not even allowed to install anything without jumping bureaucratic hurdles. I'll try some of your examples to see if they work. I don't think the first one will since Velocity does not like anything nested, but who knows. Thank you for your suggestions!
-
One of the deprecated methods used to work but now it doesn't (no idea why). So that's why I'm trying to change the existing code. The code doesn't necessarily use the space for the page the macro is in, so $space wouldn't work for this. I'm already using external classes, too. We're not allowed to setup much of anything…
-
Hi @Bill Bailey , I'm familiar with how to instantiate the classes/objects in Velocity. I don't think I explained the initial problem very well. I had assumed the answerer would understand the problem by going to the link I provided, which is the solution for using the Java API for the same problem I'm having, but that was…
-
The forum won't let me post the link to the other question/answer where I posted the answer to this question unless this sentence is different enough. So, I'm typing extraneous information to make this post more different. Here is the link to the answer.
-
I got the answer from our TAM (I don't remember what TAM stands for but it's our Atlassian liaison for those who don't have a TAM). The deprecated methods in the SpacePermissionManager class are scheduled for deletion in Confluence 8. However, from the TAM: * Confluence 8 is still a ways off and details are still being…
-
I'm not sure exactly what you meant by all of that and if you're saying you were at fault in your question or that I misunderstood you. From what I read, you wanted to put the Expand macro inside of the No Format macro. All you have to do is put the No Format macro inside of the Expand macro. I'm not sure what you mean by…
-
Adding an Expand macro inside of a No Format macro wouldn't work since the No Format macro would take away anything but text that's in the macro's body. In fact, Confluence won't even let you add the Expand macro inside the No Format macro. For this kind of thing, you don't really need to ask a question to the Community…
-
Hmm, I guess the one I was looking at, User picker, had "jira" in the class name: com.atlassian.jira.user.ApplicationUser Boolean would work, since that's really generic. I suspect a text box would also probably work. I wonder if I switched out the Confluence user class for the Jira one if that'd work. I'll have to…
-
This issues seems to have been fixed a while ago, since I haven't seen it happen in a long time. Granted, it's been a while since I've updated a Confluence page with the REST API. Hopefully it's been fixed for everyone using a recent version.
-
This post says that the SpacePermissionManagerInternal class is not available to people outside of Atlassian. What do we do now?
-
I see the post in the Developer Community that was created based on this question, but there is no answer. I can't find an answer anywhere on how to use the SpacePermissionsManagerInternal class. How is the object initiated? Are we allowed to use this class or is it just for Atlassian? I'm trying to use it in ScriptRunner…
-
The removeAllUserPermissions method is deprecated now. Do you happen to know if we're able to use the SpacePermissionManagerInternal class that the documentation says replaces the old method? I think I read somewhere that Internal classes are only for Atlassian use, but I could very well be wrong.
-
I know it's a bit delayed, but could you please put the code in your answer here? Unfortunately a lot of sites like Bitbucket are blocked by the company I work for. Thanks!
-
The person on our team looking into this issue discovered that he had not checked a basic setting, although the context thing may still be a bug. I'm not sure. In the Field Configuration, the Flagged field was set to hidden, because we had it visible previously, but then had to remove it from screens. So, in a way to make…
-
Some good tips in there! Just FYI, there are already constants for the actor types, so no need to declare your own. ;) https://docs.atlassian.com/software/jira/docs/api/8.19.1/constant-values.html#com.atlassian.jira.security.roles.ProjectRoleActor.GROUP_ROLE_ACTOR_TYPE
-
Never mind. :) I read in another post just now that the ProjectRoleUpdatedEvent is the one that fires when adding/removing a user or group to/from a project role.
-
@Max Lim _ScriptRunner_, Are you saying there are no events that fire when a project role gets a user or group added/removed to/from it? I'm trying to do something based on when a group gets added to a role in a project under Users and roles (not the permission scheme). If there are no events for this, that would be good…
-
I know it's a bit late, but I don't see which events the Listener is firing on. Maybe it's just firing on IssueCreated? The Events are selected in the UI of the Listener itself (not the script code). That's the first thing I'd check, anyhow.
-
While not exactly a "pirate" movie, there are a lot of pirate elements in the classic, the Princess Bride. Dread Pirate Roberts for example, and of course, the shrieking eels Anybody want a peanut?
-
Is there an update on this? I see the article Disabling basic authentication, but that is only for Jira and Bitbucket. In which future version will the feature to disable basic auth in Confluence Server be released? Or will it only be in Data Center? I see in the Preparing for Confluence 7.13 that this is "In Progress"…
-
@Paul Stasiak , I would think that the search you're suggesting would work about the same as any other field's history of values. Try using the WAS operator in your search. The "WAS" operator is used to find issues that currently have or previously had the specified value for the specified field. For example: Flagged WAS…