Creating a new visualforce page for the 'Search Jira' button

Published Date: 05-08-2024

Read Time:

Step 1: From ‘Setup’, search ‘Visualforce’ in the ‘Quick Find’ box and click ‘Visualforce Pages’ from search results.

Step 2: Enter ‘Search Jira’ in the ‘Label’ field and ‘Name’ will be autopopulated. Check the box next to ‘Available for Lightning Experience, Lightning Communities, and the mobile App’.

Step 3: Paste the following Apex code in the ‘Visualforce Markup’ section.

Note: In the Standard controller at the object API name, add the object on which you want to add the Search Jira button.
Copy
<apex:page standardController="Case" sidebar="false">
   
  <apex:include pageName="Grz_Sf__SearchJiraIssuesPages"/>
</apex:page>

Step 4: Click ‘Save’.

Creating the ‘Search Jira’ Button

Step 1: From ‘Object Manager’, search the object on which the ‘Search Jira’ button has to be added and click on it. For example in the below screenshot, ‘Search Jira’ button is added on the Case object.

Step 2: Click ‘Buttons, Links, and Actions’.

Step 3: Click ‘New Button or Link’.

Step 4: Fill in the required details. Enter ‘Search Jira’ in the ‘Label’ field and the name field will be autopopulated. Details for other fields are as following:

  1. Display Type: Detail Page Button
  2. Behavior: Display in the existing window with the sidebar
  3. Content Source: Visualforce Page
  4. Content: Select Search Jira VisualForce page

Step 5: Click ‘Save’.

Adding the Search Jira button into the object Page layout

Step 1: On the details section of the object, click on the page layout (For example in the below screenshot, the case page layout is selected as the button is to be added on the case object).

Step 2: Click on the buttons in the Palette. Drag the ‘Search Jira’ button into the ‘Case details’ section. This button will be placed as a custom button in this section.

Step 3: Click ‘Save’.

Searching Jira Using Search Jira button on the object Detail page

Users can search the Jira linked to the object by clicking on the Search Jira button. A new screen opens containing the project list and the Issue types. Users can choose the project and IssueType and Jira can be searched accordingly. Along with selecting the project and issue type, Jira subject should be entered in the search bar to get the correct results.