Skip to content

Commit

Permalink
Usecase added for Wrike (#459)
Browse files Browse the repository at this point in the history
* Added use case templates for wrike.

* Update template-metadata.json

* Create Create a github comment when a comment is posted in wrike_instructions.md

* Create Create a github issue according to the importance of wrike task_instructions.md

* Create Create a wrike task when a new issue is raised in github_instructions.md

* Update Create a github comment when a comment is posted in wrike_instructions.md

* Update Create a github issue according to the importance of wrike task_instructions.md

* Update Create a wrike task when a new issue is raised in github_instructions.md

* Update template-metadata.json

* Update template-metadata.json

* Update template-metadata.json

* Update Create a github comment when a comment is posted in wrike.yaml

* Updated

* Update Create a comment in GitHub when a new comment is posted in Wrike and notify through a Slack message_instructions.md

* Update Create a task in Wrike when a new issue is raised in GitHub and notify through a Slack message_instructions.md

* Update Create an issue in GitHub according to the importance level of the task in Wrike_instructions.md

* Update Create a comment in GitHub when a new comment is posted in Wrike and notify through a Slack message_instructions.md

* Update Create a task in Wrike when a new issue is raised in GitHub and notify through a Slack message_instructions.md

* Update Create an issue in GitHub according to the importance level of the task in Wrike_instructions.md

* Update template-metadata.json

* Update template-metadata.json

---------

Co-authored-by: Raghu Ram Dhigajarla <[email protected]>
Co-authored-by: ireneapeter <[email protected]>
Co-authored-by: Deepak Ayilliath <[email protected]>
  • Loading branch information
4 people authored Jul 22, 2024
1 parent 284c132 commit 2c50ebd
Show file tree
Hide file tree
Showing 7 changed files with 472 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
$integration: http://ibm.com/appconnect/integration/v2/integrationFile
integration:
type: trigger-action
trigger-interfaces:
trigger-interface-1:
type: event-trigger
connector-type: wrike
triggers:
CREATED_POLLER:
assembly:
$ref: '#/integration/assemblies/assembly-1'
input-context:
data: getComments_model
options:
subscription:
pollingInterval: 1
action-interfaces:
action-interface-2:
type: api-action
business-object: message
connector-type: slack
actions:
CREATE: {}
action-interface-1:
type: api-action
business-object: Comment
connector-type: github
actions:
CREATE: {}
assemblies:
assembly-1:
assembly:
execute:
- create-action:
name: GitHub Create comment
target:
$ref: '#/integration/action-interfaces/action-interface-1'
map:
mappings:
- IssueNumber:
template: '9'
- OwnerName:
template: nonibmapp
- RepoName:
template: appconet8yvv
- body:
template: '{{$Trigger.text}}'
$map: http://ibm.com/appconnect/map/v1
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: flowDetails
$ref: '#/flowDetails'
- create-action:
name: Slack Send message
target:
$ref: '#/integration/action-interfaces/action-interface-2'
map:
mappings:
- OBJECT_ID:
template: C077JJM5VS6
- OBJECT_NAME:
template: channel
- text:
template: 'comment : {{$Trigger.text}}'
$map: http://ibm.com/appconnect/map/v1
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: GitHubCreatecomment
$ref: '#/node-output/GitHub Create comment/response/payload'
- variable: flowDetails
$ref: '#/flowDetails'
name: Create a comment in GitHub when a new comment is posted in Wrike and notify through a Slack message
models: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
$integration: http://ibm.com/appconnect/integration/v2/integrationFile
integration:
type: trigger-action
trigger-interfaces:
trigger-interface-1:
type: event-trigger
connector-type: github
triggers:
CREATED_POLLER:
assembly:
$ref: '#/integration/assemblies/assembly-1'
input-context:
data: Issue
options:
OwnerName: nonibmapp
RepoName: appconet8yvv
parentFilter:
OwnerName: nonibmapp
RepoName: appconet8yvv
subscription:
timeZone: UTC
pollingInterval: 1
action-interfaces:
action-interface-1:
type: api-action
business-object: postFoldersByFolderIdTasks_model
connector-type: wrike
actions:
postFoldersByFolderIdTasks: {}
action-interface-2:
type: api-action
business-object: message
connector-type: slack
actions:
CREATE: {}
assemblies:
assembly-1:
assembly:
execute:
- custom-action:
action: postFoldersByFolderIdTasks
name: Wrike Create task
target:
$ref: '#/integration/action-interfaces/action-interface-1'
map:
mappings:
- description:
template: '{{$Trigger.body}}'
- folderId:
template: IEAGE3HGI5H3KSCJ
- importance:
template: Normal
- status:
template: Active
- title:
template: '{{$Trigger.title}}'
$map: http://ibm.com/appconnect/map/v1
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: flowDetails
$ref: '#/flowDetails'
- create-action:
name: Slack Send message
target:
$ref: '#/integration/action-interfaces/action-interface-2'
map:
mappings:
- OBJECT_ID:
template: U06FMLMPXK6
- OBJECT_NAME:
template: user
- text:
template: New {{$WrikeCreatetask}} created in wrike.
$map: http://ibm.com/appconnect/map/v1
input:
- variable: Trigger
$ref: '#/trigger/payload'
- variable: WrikeCreatetask
$ref: '#/node-output/Wrike Create task/response/payload'
- variable: flowDetails
$ref: '#/flowDetails'
name: Create a task in Wrike when a new issue is raised in GitHub and notify through a Slack message
models: {}
Loading

0 comments on commit 2c50ebd

Please sign in to comment.