Support for Atlassian Server Products (and apps like BigPicture) has ended in February 2024.

Are you planning a migration to Cloud? Make sure you don't lose your BigPicture data/configurations in the process. Check out this page for information on how to migrate BigPicture's data to Cloud. If you have any questions please email support@appfire.com

"Absences" project configuration

 

 

Config summary

Here's what you will have after completing this guideline:

  • A dedicated issue type associated with your absences Jira project;

  • A new field configuration and field configuration scheme configured and associated with your absences Jira project;

  • Project screens for both 'Create' and 'Edit/View Issue' operations set up; 

  • A new Power Scripts listener; 

  • Project workflow configured to match the integration scripts. 

 

Required permissions

Requires either Jira System Administrators or Jira Administrators global permission. If you don't have such privileges, ask your Jira administrator for help.

Switch current project issue types to "Absence Request" type

  1. Open "Absences" project and jump to 'Project settings'. From there, select 'Issue types'. 

  2. Expand 'Actions' drop-down menu in the top right and select 'Edit issue types'. 

  3. Click 'Remove all' to move all of the current project issue types to 'Available Issue Types' list (1). Afterwards, they will no longer be used by the project. Next, find the "Absence Request" issue type on the 'Available Issue Types' list. Drag and drop it onto the 'Issue Types for Current Scheme' list (2). 

  4. Scroll down and click 'Save'. 

  5. You should end up with your project issue types configured as shown below.

Configure project field configuration

Considering a typical Jira instance may have more than one Jira project associated with the default field configuration, it is recommended for this integration to associate a different field config with the "Absences" project. This is because we'll make some of the custom fields required and want this change not to affect any other Jira project.

  1. Go to Jira administration > Issues > Fields > Field configurations. For the field config currently used by the "Absences" project click 'Copy'.  

  2. Change the name and description of a field config copy. Description field may be left empty. Once done, click 'Copy'.

     

  3. Click 'Configure' for the recently copied field config.

  4. For Absence Type, Manager/Approver, Start date and End date custom fields, click 'Required'. You may use '⌘ + f' to find the fields easier. 


    Once done, you should see 'Required' lozenge right next to the custom fields name. 

  5. Next, jump to the 'Field configuration schemes' screen and click 'Add field configuration scheme' in the upper right.

  6. Give it the "Absences" name and click 'Add'. Description field may be left empty.

  7. Right after, click 'Edit' under Actions.

  8. Switch the field configuration to the 'Absences' config created in step (2). Next, click 'Update'. 

  9. Go back to the "Absences" project settings and jump to the 'Fields' screen.

  10. Expand 'Actions' drop-down menu in the upper right and select 'Use a different scheme'.

  11. Switch the scheme to the 'Absences' entity added in step (6) and click 'Associate'.  

  12. As a final result you should see the 'Absences' scheme associated with the "Absences" project. 

Set up project screens

  1. Open "Absences" project and jump to 'Project settings'. From there, select 'Screens'.

  2. Open the screen for the 'Create Issue' operation. 

  3. Remove all of the fields from the Create Issue screen except for the 'Summary' field.

     

  4. Find and add the following custom fields: Manager/Approver, Absence Type, Reason/Comment, Start date, End date

  5. Go back to the 'Screens' and open the screen for the 'Edit/View Issue' operation. 

  6. Redo the step (3). Later, find and add the following custom fields: Manager/Approver, Absence Type, Reason/Comment, AttachmentStart date, End date. We've added the 'Attachment' field so that users could attach doctors notes or additional files as needed.


    Go to Jira administration > Manage apps > Power Apps Config > Power Scripts > Listeners. There, click 'Add listener'. 

    Next, select the Issue events the script should fire on, i.e. Issue Created, Issue Updated, as well as the "Absences" project it should be applicable to. Later, click the pencil icon to select the 'assignManager.sil' script. 

     


    Once script has been selected, click 'Add' to add a listener. 


    You should end up with a listeners config looking like this. 

Set up project workflow

  1. Open "Absences" project and jump to 'Project settings'. From there, select 'Workflows'.

  2. Click on the pencil icon under 'Actions'. This will take you to the workflow designer screen. 

  3. Switch to 'Diagram'. 

  4. For the purpose of this user manual, we went ahead and redesigned the default project workflow so that it is simple and straightforward. 

  5. Select the 'Approve' transition and click 'Validators'.

  6. Click 'Add validator'. 

  7. Select 'SIL Validator' and click 'Add'. 

  8. Choose 'Existing Script' and click 'Next'.

  9. Click on the pencil icon to select script. 

  10. Expand 'silprograms' folder and go down to 'Workflow'. Then, select 'validator.sil' and click the 'Select' button.

  11. At the end, click 'Finish'. 

  12. Repeat the process but add 'recordAbsence.sil' script as another validator. 

  13. Go back to the workflow designer, select the 'Approve' transition again and click 'Post Functions'. 

  14. Click 'Add post function'.

  15. Select 'SIL Post-function' and click 'Add'.

  16. Choose 'Existing Script' and click 'Next'.

  17. Click on the pencil icon to select script.

  18. Expand 'silprograms' folder and go down to 'Workflow'. Then, select 'assignManager.sil' and click the 'Select' button.

  19. At the end, click 'Finish'. 

Use the down arrow to move the script entry to the very bottom of the list so that it becomes last in order. After that, publish the workflow by clicking 'Publish'.