Versions Compared

Key

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

...

This is simple if a button is configured for the object page layout to do so.

(warning) The button  The button can only be used for the Jira project that is associated with the same Mapping because different Mappings will have different parameters appended to the Endpoint URL.

Guide

Lightning Experience

  1. You will need to get the correct Jira URL first by copying the URL for the "Create" Endpoint from the Configure Mappings screen.
     

  2. Go to  > Setup.

...


  1. Image Added



  2. Search for "Object Manager" then click on the Object Manager menu item.

...


  1. Image Added



  2. Choose the object that you want to create a button in.
    In our example, we will use Case.

...


  1. Image Added
  2. Choose Buttons, Actions, and Links.

...


  1. Image Added



  2. You will be taken to a listing of the standard buttons and links associated with the object.
    Underneath this is a list of custom buttons and links.
    Click New.

...

  1. Image Added
  2. A form will appear for you to enter the details of the new button.

    Label

    Create Jira Issue

    Name

    Create_Jira_Issue (this is auto-populated when you add a new label)

    Display Type

    Detail Page Button

    Behaviour

    Display in new window

    Content Source

    URL

    You are free to enter your own text for the the Label, but for this example we will call it "Create Jira Issue".

    Image Modified


  3. Under the fields, you will see a large text input field.
    In this text input field, insert the URL from step 1.
    e.g., http://localhost:6250/plugins/servlet/customware/connector/issue/3/Case/create.action?id={!Case.Id}

...


  1. Image Added


     

  2. Click Save.
    A pop-up will warn you that this button "will not be displayed to users until you add it to the page layout", which is what we will do next.
     

  3. Now look for Case Page Layouts and click it.

...


  1. Image Added
  2. A list of page layouts for the object will be listed.
    In this example, we want to modify the default Case page layout, which is called Case Layout.
    Go to the pull down menu and choose Edit.

...


  1. Image Added



  2. An interactive editor will appear for the object page layout.
    At the top will be a section of the items you can add to your layout, at the bottom is the page layout where you can drag and drop the item to.
    You should see also that at the top of the layout where it says Case Detail are sections for Standard and Custom Buttons.
    We want to add our new button into the Custom Buttons section.
    First, click on the Buttons area of the top section.

...

  1. Image Added

  2. Find your new Create Jira Issue button (or whatever you labelled it as) in the list and drag and drop it into the Custom Buttons section of the page layout.

...


  1. Image Added



  2. Click Save at the top left of the upper section.

...


  1. Image Added



  2. You will be taken back to the object page layout listing.
    To verify your changes, go to an object in the instance and check that the page now has your new button.
    If it does not, please check you modified the correct page layout

...

  1. Image Added


Salesforce Classic

  1. You will need to get the correct Jira URL first by copying the URL for the "Create" Endpoint from the Configure Mappings screen.
     

  2. Go to Salesforce and log in as an administrator.
     

  3. Click on Setup.

...


  1. Image Added



  2. Expand the Customize menu under Build on the left hand menu.
    This should open up all the objects in your Salesforce instance.

...


  1. Image Added



  2. Expand the object that you want to create a button in.
    In our example, we will use Cases.
     

  3. Under the object menu, click on Buttons, Links, and Actions.

...

  1. Image Added
  2. You will be taken to a listing of the standard buttons and links associated with the object.
    Underneath this is a list of custom buttons and links.
    Click New Button or Link.

...


  1. Image Added



  2. A form will appear for you to enter the details of the new button.

    Label

    Create Jira Issue

    Name

    Create_Jira_Issue (this is auto-populated when you add a new label)

    Display Type

    Detail Page Button

    Behaviour

    Display in new window

    Content Source

    URL

    You are free to enter your own text for the the Label, but for this example we will call it "Create Jira Issue".

    Image Modified

  3. Under the fields, you will see a large text input field.
    In this text input field, insert the URL from step 1.
    e.g., http://localhost:6250/plugins/servlet/customware/connector/issue/3/Case/create.action?id={!Case.Id}

...


  1. Image Added


     

  2. Click Save.
    A pop-up will warn you that this button "will not be displayed to users until you add it to the page layout", which is what we will do next.
     

  3. In the sidebar, under your object menu, click on Page Layouts.

...


  1. Image Added



  2. A similar listing of page layouts for the object will be listed as for the buttons page.
    In this example, we want to modify the default Case page layout, which is called Case Layout.
    Click on the Edit link under the Actions column of the layout.

...


  1. Image Added
  2. An interactive editor will appear for the object page layout.
    At the top will be a section of the items you can add to your layout, at the bottom is the page layout where you can drag and drop the item to.
    You should see also that at the top of the layout where it says Case Detail are sections for Standard and Custom Buttons.
    We want to add our new button into the Custom Buttons section.
    First, click on the Buttons area of the top section.

...


  1. Image Added



  2. Find your new Create Jira Issue button (or whatever you labelled it as) in the list and drag and drop it into the Custom Buttons section of the page layout.

...


  1. Image Added
  2. Click Save at the top left of the upper section.

...


  1. Image Added



  2. You will be taken back to the object page layout listing.
    To verify your changes, go to an object in the instance and check that the page now has your new button.

...


  1. Image Added



Notes

  1. You can include the extra parameters to the Create endpoint to specify a default project and default issue type

    1. project - Jira project key

    2. issueType - Jira issue type ID (See: How you can find the ID of an issue type)
       

  2. For example, if you have the following:

...

  1. Code Block
    project key = PRO
    issueType = 4 for improvement

    Then

...

  1. you

...

  1. can

...

  1. append

...

  1. the

...

  1. parameters

...

  1. to

...

  1. the

...

  1. create

...

  1. endpoint

...

  1. for

...

  1. the

...

  1. task

...

  1. object

...

  1. as

...

  1. below:

...

  1. Code Block
    <Jira URL>/plugins/servlet/customware/connector/issue/1/Task/create.action?id={!Task.Id}&project=PRO&issueType=4