I want to run a python script on a server (different from the confluence server) whenever some of the pages in Confluence are changed. How would I do this?
I don't want to trigger the update via Javascript (because that would mean I'd have to open the server with the script to the world), but I want to trigger the change server side.
I tried the HTML include macro, but this macro doesn't let me specify which of the confluence pages has been changed.
We use confluence 4.1.6.
One approach could be to monitor a email inbox for page updates.
Create a user as a script proxy.
Add the user as a watcher for the pages you are interested in.
Your script would poll the inbox of the user for any emails from your instance of Confluence.
Extract URL of the page from the email body.
Delete / Move the email away from inbox to mark it as complete.
Related
In our DokuWiki Installation (Release 2018-04-22b "Greebo"), users can subscribe to daily notification mails, which is a core feature of DokuWiki.
For those daily emails, we would like to make sure that they arrive at a certain time.
In the documentation, I did not find anything about a script that could be started (i.e. from a cronjob) to send out mails.
I set up a cronjob calling a freely accesible page in the wiki using curl (no login required for this page). This did not cause emails to be send.
Any hint on how to schedule daily emails to be send at a certain time would be helpful!
Update: I am aware of .../feed.php, which would theoretically allow to get information on wiki events using the RSS feed. This data could be used to send notification mails. However, the RSS feed would need to be generated for every user to respect access right. For this to work, some sort of user credentials - or a copy of the user's access rights - would need to be copied to a place outside of dokuwiki and kept in sync.
I was having the similar problem as mentioned in the below link, Select and Display the table in oracle APEX mail body. I followed the mentioned steps and it worked!! .
Now, I just want to extend the same question and wanted to know, Is it possible to manipulate the the database through click on the button in the mail?
If I crate the html Button APPROVE, It should be able to manipulate database table.
Suppose, APPROVE performs delete operation: delete ename from emp where dno=10.
VERSION : ORACLE APEX 4.2
If you are sending an HTML email to a user and you want that user to interact with the system from the email, you could generate an HTML form that submits to a particular URL (some APEX page with some set of parameters) that actually implements the DELETE.
Assuming that the client email application would allow the user to submit a form, which would generally be a security issue and would probably not be possible from some clients, you'd probably have security issues to worry about on the server side. I'd assume, for example, that you don't want to allow any random person that works out the URL to call to be able to delete whatever row you want from your system. You probably want to require that someone is logged in before you'd allow them to delete a row. And you probably want to make sure that they have permission to delete that particular row.
It's certainly possible that you could work around both the client and the server side permission issues by doing something like creating a unique token that expires after a short period of time and gets passed in with the form to verify that the user has permission to delete that particular row. But by the time you're building that sort of infrastructure or sending users to a login page, you're probably better off just creating links in your email that point to a page in your application and letting users go there to request the actual delete. That's going to work more reliably than a form that submits a request and it will probably involve less work for you.
I am using the Office365 Rest API's to integrate with our application.
Our application generates emails via templates, and then we need to open it as a draft in outlook so the user can make any adjustments before sending it.
The creation of emails is working just fine, and we get the #odata response.
In this response we are taking the weblink section and using this to open the draft email.
If we just use the section as is, the draft email is displayed in a new window, but there is no option there to send it, just to continue editing or discard. So the user has to select continue editing to be able to send it. This would be more useful of you could Is there an option to go straight to the editor? There is a viewmode parameter, but I couldn't find any information on it and trying anything other than viewmodel=ReadMessageItem just gave me a blank screen.
What we really want to be able to do is open the draft in the full outlook editor. From the documentation, this appears to be possible by adding ispopout=0 to the weblink (as mentioned in the resource reference for message). When we do this, the link does open the main outlook window, but it doesn't open the draft in the message pane, just displays the inbox. Is there something I'm missing here?
WebLink property provides you a URL for Outlook Web App window to read a mail the user has received, or a draft as if it was saved by the user. So, the user does have to click on "Edit" to make any changes or send the message. For your scenario, taking the user directly to the draft in "Edit" mode makes sense to avoid the extra click. We will add this feature to our backlog.
"ispopout=0" isn't yet supported and I don't have a timeline to share right now. This is intended for the user to land in Outlook Web App with the message displayed in Preview pane. More importantly, we require the URL returned in WebLink to be used as is, as it can change. So, if an app makes changes to the URL before using it, it could break in the future if the URL structure changes.
If you take a page and put it in a workflow, then if someone wants to modify that page – in an emergency situation and essentially start another workflow on it –
Is that possible to send that page through another workflow?
If you don’t want to send the same page through a workflow, but just want to edit it, can you?
Apparently If one person is editing a CQ page and same page is edited by someone else at the same time, at production level, how the CQ / developer handles the situation?
Thanks in Advance
It is not possible to subject a page to more than one workflow at once, none of the interfaces allow this to happen.
The pages can be edited even when they are subject to a workflow. In emergency situations where in it is not possible to complete the workflow , users with required privileges can terminate the workflow from the instances tab of the workflow console (/libs/cq/workflow/content/console.html). Pages can be usually activated even if they are subject to workflows.
The repository is accessed via repository session. Based on the credentials provided the user gets a repository session. Any changes made via that session is only visible to the other users when the session is saved. Since different sessions are used , multiple users can edit the same page simultaneously. The data in dialogs are loaded via asynchronous GET requests when EDIT is clicked and not on page load , so it is very unlikely that the user will be editing old data. They can still overwrite some other user's changes. Developers do not have to handle these situations unless there is some special requirement. If a user wants to stop other users from editing a page , they can use the lock functionality that comes out of the box. A locked page can be unlocked only by the user who locked it or an administrator. A page or node can be programmatically locked via the JCR API.
I’ve designed a form for a user here to collect data for a workflow. I used SharePoint designer to build a custom approval form. When the workflow is initiated I am receive and email to ‘Edit Task’. I click on the Edit Task button and it takes to the form. I enter the information requested and my tasks lists and calendar are updated. However when I set the email to go to the user who will be entering the data( approval) the ‘Edit Task’ Button takes him to an error page “404 page not found”.
It seems that when I created the form SharePoint saved it to a local server and not to the Sharepoint server. I notice that the out of the box workflows go to this directory: http://vaww.visn16.portal.va.gov/sites/HOU/IMS/VistA/Help/_layouts/...
However my form is in the Workflow directory: http://vaww.visn16.portal.va.gov/sites/HOU/IMS/VistA/Help/Workflows/
I use my Explorer to go to My Network Places and I can see the directory for my workflow and workflow form. However other users with my same permission can get to the Workflow directory but only they cannot see the form. The other files associated with the workflow are present for them. Why can’t others access(see) the form? Users that I have asked to test this workflow all have full permissions like me.
Make sure the page that you navigate to when you click the Edit Task button is not checked out to you. If it is checked out, check it in and others should be able to see the page.