Create delivery tickets by automation
Asked by Rebecca Graf:

Hey all,

I'd like to create a delivery automatically once a JPD ticket reached a certain status and has dedicated field values.

I already tried to achieve that with a global rule, but the link was not set:

When issue transitioned from to

And: bucket equals initiative

And: No linked issues match Types: is implemented by, implements Match project = INIT (to ensure that there wasn't already a delivery ticket created)

Then: Create a new Initiative in Initiatives

And: Link issue to trigger issue

The error message I got is:

Unknown fields set during create, they may be unavailable for the project/type. Check your custom field configuration. Fields ignored -  
Linked Issues (issuelinks)  
Both projects (Jira and JPD) us the implements / is implemented by already to link delivery tickets, but so farthis is only set manually.  
Any ideas what needs to be changed to make that rule work?  
Your help is highly appreciated :-)  
Best  
Rebecca


Answers:
author: Nick H
body: Hi [@Rebecca Graf](/t5/user/viewprofilepage/user-id/3020706) ,

I think an automation like the one below should work for your use case:

![autodelivstatus.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/346610iCF2FDFB2EFCC8279/image-size/large?v=v2&px=999 "autodelivstatus.jpg")

1) WHEN: Issue Transitioned to (select your workflow's / idea's status)

2) AND IF: Issue fields condition (select your Bucket field = Initiative)

3) AND IF: Related issues condition

* Related issues = Linked issues
* Link types = implements, is Implemented by
* Condition = Are not present

4) THEN: Create issue (select your Jira project / issue type)

(If you were to copy any of the JPD idea's fields to this Jira issue's fields, copy from **Current issue**)

5) AND THEN: Link issues

* 6) Link issues: is Implemented by - Most recently created issue

I tested with the automation above after those fields / conditions were met, and it worked as expected.

But the error you shared sounds similar to what other customers have run into where the A4J (Automation for Jira) user has not been granted JPD permission.

To have this corrected, you'll want to open a ticket with JPD support so they can grant your A4J user with JPD permission. The A4J user cannot be granted permission from your end.

You can open a ticket within JPD support [HERE](https://support.atlassian.com/contact/), or under the *Give Feedback* tab \>\> *Get help from the support team.*

A workaround for the time being is adjusting the [Actor](https://support.atlassian.com/cloud-automation/docs/what-is-a-rule-actor/) of the automation to a user that has JPD permission to see if results vary and/or are successful.

comments: author: Rebecca Graf
body: Great [@Nick H](/t5/user/viewprofilepage/user-id/2540930) , that worked. Step 5 was a bit different in my configuration and thus failed before. With your help I was able to fix it - thank you so much!

But: The link is only visible in Jira and not in JPD (neither as delivery ticket nor as any other linked issue). Any idea why?


author: Rebecca Graf
body: [@Nick H](/t5/user/viewprofilepage/user-id/2540930) not sure if you have seen my last comment, but I am still struggeling with one little thing:

The link is only visible in Jira and not in JPD (neither as delivery ticket nor as any other linked issue).

Any idea why?

comments: author: Nick H
body: Hi [@Rebecca Graf](/t5/user/viewprofilepage/user-id/3020706) ,

Please share a screenshot of your configured automation. The JPD idea should link to the Jira delivery as "Implements," and the delivery should then be found in the idea's Delivery tab.

Here are screenshots of the same automation previously shared, along with a test run just before this response:

![del1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/347092i53770C02AB19E3E0/image-size/large?v=v2&px=999 "del1.jpg")![del2.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/347094iDCC06716FBF33F9A/image-size/large?v=v2&px=999 "del2.jpg")![del3.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/347095i7CFA67B1D4BC8753/image-size/large?v=v2&px=999 "del3.jpg")![del4.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/347093iD6392BB3755C2B19/image-size/large?v=v2&px=999 "del4.jpg")

Feel free to also open a JPD support ticket [HERE](https://support.atlassian.com/contact/#/), or within JPD under the *Give Feedback* tab \>\> *Get help from the support team*.


author: Rebecca Graf
body: Thanks once again for your help [@Nick H](/t5/user/viewprofilepage/user-id/2540930) ! I just mixed up is implemented by and implements, after changing the config it works now!


Tags: automation

delivery

issue-link

jira