Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Tasklist for Insight objects in Jira issues

Soley Gudmundsdottir January 29, 2019

We are using Insight for asset management. 

We have a list of instruments (each instrument is an object) and a list of regular service tasks (also an object).

A service task is a referenced attribute on the instrument.

Each instrument can have several service tasks and each service task can be attributed to several instruments.

The instrument also has a date field: Next service date.

For instance:

  • Instrument 1: Bicycle (Next service date: 01/FEB/19)
  • Instrument 2: Tricycle (Next service date: 01/MAR/19)
  • Service task: Oil chain (Step 1: Get oil can | Step 2: Spray oil on chain)

Both the bicycle and the tricycle get the service task Oil chain but they do not have the same Next service date.

With automation we go through an instrument list (objects) daily and check if there is a service date coming up. If so a Jira ticket is created to perform this service task for that specific instrument. When the ticket is closed a script updates the Next service date according to rules we have set.

What we would like to do is make the service task's list of steps a tasklist (we are currently using the add-on Simple tasklists in other Jira projects) in the newly created Jira issue. Then we will use postfunction scripts to only allow the issue to be closed if the tasks have all been completed. We use this postfunction in other projects and that works fine.

The problem is this: Is it possible to somehow create a tasklist in the service task object itself that translates to a Jira issue, perhaps with some markup? 

I hope this is not to confusing, I tried to make it as clear as I could.

2 answers

1 accepted

0 votes
Answer accepted
Nader Nassif
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 30, 2019

Hi Soley,

You should be able to do that (the task list) if you define it as a textarea attribute type. This will allow you to store task lists on the object service task itself. 

A small example would be 

The translation however on Jira will have to be scripted via groovy or something else. You might be able to use the same add-on as you are using Today and the values from the attribute. But as I have not used it myself I cannot say for sure.

Cheers!

Nader

Nader Nassif
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 30, 2019

Screenshot 2019-01-30 at 17.06.16.png

0 votes
Soley Gudmundsdottir February 4, 2019

Hi Nader.

Thank you for your reply :)

We will probably end up scripting this as you suggested but as a workaround until we do, we used the markup {task} in the textarea field in the object and Jira read that correctly as a checkable task in the new issue created with the automation rule.

Thanks again :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events