Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Salesforce Package provides a set of Visualforce pages to show associated Jira issues and some operation buttons to create or associate. It also provides a page to view Jira comments related to the associated Jira issues. 

This page

...

guides you on how to configure Visualforce pages for both standard objects and custom objects in Salesforce.

Info

Using the Lightning view? Check out Configuring Lightning Experience components.

Ensure that you have already installed the Salesforce Package and configured a connection before continuing with this guide.

...

On this page:

Table of Contents
minLevel1
maxLevel3
outlinefalse
styledisc
typelist
printabletrue

Create a Visualforce page

...

The package is shipped with ready-made Visualforce pages for Case. If you plan to use it for Case only, you can skip

...

to Add a Visualforce page to an Object Layout. For other standard objects and custom objects, follow the steps in this section.

...

Create a Jira Issues Visualforce page

  1. Go to Setup and type

...

  1. Visualforce Page

...

  1.  in the

...

  1. Quick Find box.

...

  1. Image Added
  2. Click New.

  3. Provide a name and a label for the Visualforce page. 
    We

...

  1. recommend using Jira Issues as the label and ObjectNameJiraIssuesPage as the name. Replace ObjectName accordingly. For example:

    • AccountJiraIssuesPage for Account

    • OpportunityJiraIssuesPage for Opportunity

    • MyCustomObject__cJiraIssuesPage for MyCustomObject__c
      Image Modified

  2. Paste the following into the Visualforce Markup editor:
    Cloud

    JIRA Issues Visualforce Page

    Code Block
    languagexml
    <apex:page standardController="ObjectName" extensions="JCFS.GenericObjectController">
        <JCFS:JiraIssuesComponent son="{!son}" soid="{!soid}"></JCFS:JiraIssuesComponent>
    </apex:page>

    Server

    JIRA Issues Visualforce Page

    Code Block
    languagexml
    <apex:page standardController="ObjectName" extensions="JSFS.GenericObjectController">
        <JSFS:JiraIssuesComponent son="{!son}" soid="{!soid}"></JSFS:JiraIssuesComponent>
    </apex:page>
  3. Remember to replace

...

  1. ObjectName accordingly.
    Image Modified 

  2. Click Save.

...

Create a Jira Comments Visualforce Page

...

To display Jira comments for your object,

...

repeat the steps in

...

...

page section above with the following details:
Label: 

...

Jira Comments

...


Name: 

...

ObjectNameJiraCommentsPage
Visualforce Markup:

Cloud

JIRA Comments Visualforce Page for Custom Objects

Code Block
languagexml
<apex:page standardController="ObjectName" extensions="JCFS.GenericObjectController">
    <JCFS:JiraCommentsComponent son="{!son}" soid="{!soid}"></JCFS:JiraCommentsComponent>
</apex:page>

Server

JIRA Comments Visualforce Page for Custom Objects

Code Block
languagexml
<apex:page standardController="ObjectName" extensions="JSFS.GenericObjectController">
    <JSFS:JiraCommentsComponent son="{!son}" soid="{!soid}"></JSFS:JiraCommentsComponent>
</apex:page>

...

Add a Visualforce page to an Object Layout

  1. Log in to your Salesforce instance and click Setup.

...

  1. To customize your object Page Layout

...

  1. , under the sidebar,

...

  1. navigate to Build > Customize > (object name) > Page Layout.

  2. Choose the layout you want to edit in the list, then click Edit

...

  1. Example of Case Page Layout

    Image Added
  2. Under the Layout panel, scroll until you find Visualforce Pages.

...

  1. Image Added


    If you don't see the Visualforce page you're looking for, review the steps in

...

...

  1. .

...

  1. Click and drag Section to a preferred section in the layout. Give this section a name

...

  1. . In this case, we've named it

...

  1. Jira Section

...

  1.  and configured it as a two-column layout.

...

  1. Click and drag Jira Issues and Jira Comments onto the newly-created

...

  1. Jira Section

...

  1. and place them side by side. You

...

  1. can also

...

  1. adjust the properties so that

...

  1. the panel

...

  1. size is more usable (a minimum height of 500px is recommended).

    Image ModifiedImage Modified
  2. Click Save.

Now, when you load an object's page, you

...

can see the Jira issues associated with

...

it, along with their comments.
Image Modified

...

Upon creating a new Jira issue or associating

...

it with an existing one, the Jira Comments page will refresh automatically.

...