Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b8dbdaf5
Commit
b8dbdaf5
authored
May 27, 2021
by
David Wainaina
Committed by
Achilleas Pipinellis
May 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ruby script to change settings to Jira instance-level integration
parent
ff500c73
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
doc/administration/troubleshooting/gitlab_rails_cheat_sheet.md
...dministration/troubleshooting/gitlab_rails_cheat_sheet.md
+15
-0
No files found.
doc/administration/troubleshooting/gitlab_rails_cheat_sheet.md
View file @
b8dbdaf5
...
...
@@ -279,6 +279,21 @@ p.each do |project|
end
```
## Bulk update to change all the Jira integrations to Jira instance-level values
To change all Jira project to use the instance-level integration settings:
1.
In a Rails console:
```
ruby
jira_service_instance_id
=
JiraService
.
find_by
(
instance:
true
).
id
JiraService
.
where
(
active:
true
,
instance:
false
,
template:
false
,
inherit_from_id:
nil
).
find_each
do
|
service
|
service
.
update_attribute
(
inherit_from_id:
jira_service_instance_id
)
end
```
1.
Modify and save again the instance-level integration from the UI to propagate the changes to all the group-level and project-level integrations.
### Bulk update to disable the Slack Notification service
To disable notifications for all projects that have Slack service enabled, do:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment