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
Go to Setup and type
Visualforce Page
in the Quick Find box.Click New.
Provide a name and a label for the Visualforce page.
We recommend 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
Paste the following into the Visualforce Markup editor:
CloudJIRA Issues Visualforce Page
Code Block language xml <apex:page standardController="ObjectName" extensions="JCFS.GenericObjectController"> <JCFS:JiraIssuesComponent son="{!son}" soid="{!soid}"></JCFS:JiraIssuesComponent> </apex:page>
Server
JIRA Issues Visualforce Page
Code Block language xml <apex:page standardController="ObjectName" extensions="JSFS.GenericObjectController"> <JSFS:JiraIssuesComponent son="{!son}" soid="{!soid}"></JSFS:JiraIssuesComponent> </apex:page>
Remember to replace ObjectName
ObjectName
accordingly.
Click Save.
Create a Jira Comments Visualforce Page
If you wish to To display Jira comments for your object, you can repeat the steps in "Creating the Create a Jira Issues Visualforce Page" page section above with the following details:
Label:
Jira Comments
Name:
ObjectNameJiraCommentsPage
Visualforce Markup:
Cloud
JIRA Comments Visualforce Page for Custom Objects
Code Block | ||
---|---|---|
| ||
<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 | ||
---|---|---|
| ||
<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
Log in to your Salesforce instance and click Setup.
Now let's To customize your object Page Layout.
Under , under the sidebar, go navigate to Build > Customize > (object name) > Page Layout.Choose the layout you want to edit in the list, then click Edit.
Here's an example for Case:Example of Case Page LayoutUnder the Layout panel, scroll until you find Visualforce Pages.
If you don't see the Visualforce page you're looking for, review the steps in Create a Visualforce Page.Now click and drag Click and drag Section to a preferred section in the layout. Give this section a name, in . In this case, we've named it '
Jira Section
' and configured it as a two-column layout.Now clickClick and drag Jira Issues and Jira Comments onto the newly-created 'Jira Section' and place them side by side. You may can also want to adjust the properties so that you get a the panel with a size you'll be more comfortable working in size is more usable (a minimum height of 500px is recommended).
Click Save.
Now, when you load an object's page, you are able to can see the Jira issues associated with the objectit, along with their comments.
Upon creating a new Jira issue or associating to it with an existing one, the Jira Comments page will refresh automatically.