Versions Compared

Key

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

...

To start configuration for your SUTAJC field, follow these steps:

  1. Navigate to the "Custom Fields" page in your Jira instance by going to "Settings → Issues → Custom Fields".

  2. Find your custom UTA field in the list of custom fields and click on the three-dot menu to the right of the field.

  3. Select "Configure" from the dropdown menu, then choose "Contexts and default values".

  4. Select ‘Edit custom field config’ to open a configuration page:

...

(info) Before beginning the configuration process, it is essential to carefully consider and decide on the setup for the employee file and related contract as described in Introduction.

Calculating worklogs work logs

Configuration for calculation is set up within two tabs: Get Worklogs & Required Time:

Time Account Issues should be filled with a JQL query that returns the issues in which we would like to see the UTA field disaplyeddisplayed.
For example, in our use case, the JQL specifies that the UTA field will by be displayed in the ‘Employee’ issue type of project ‘HR’.

User Field specifies whose worklogs work logs will be calculated.
In our case, we would like to calculate the worklogs work logs of an employee file assignee.

Tempo billed hours: By default, the field calculates worklogs work logs from Jira’s default custom fields. To calculate based on Tempo worklogswork logs, mark the checkbox and complete authorisation with the Tempo app as specified in Integration with Timesheets by Tempo

Calculation Days & Time: this is a scheduler in which you can set up how often the calculation is triggered.

...

User Contract Link: To perfom perform a calculation, the field needs to pull conditioning values from a contract. To A link type should be specified to help the field understand which of the related issue issues is the contract one a link type should be specified. in the User Contract Link field.

...

If the contract issue is linked to the employee file by an Advacned Advanced Link from our app STAGIL Assets, a different configuration is required to specify the link.

...

Code Block
issue.properties['sajc-field-123']['123'].map(key => {
 let wcIssue = new Issue(key);
 return {
 accountId: issue.assignee.accountId,
 start:wcIssue .customfield_10040+"T00:00:00",
 end: wcIssue .customfield_10041+"T23:59:59",
 workload: JSON.parse(wcIssue.customfield_10045)
 }}
}) 

where 123 in sajc-field-123 is the Advanced Link id ID, and user, contract dates and workload are recorded as wcIssue .customfield_10041 with a specified field id. field ID.

To aggregate only the billed time, the complete expression should be formulated as follows:

Code Block
issue.properties['sajc-field-123']['123'].map(key => {
 let wcIssue = new Issue(key);
 return {
 accountId: issue.assignee.accountId,
 start:wcIssue .customfield_10040+"T00:00:00",
 end: wcIssue .customfield_10041+"T23:59:59",
 workload: JSON.parse(wcIssue.customfield_10045)
 useBilled: true
 }
})