Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,122
Community Members
 
Community Events
165
Community Groups

Issue copying fields using the create issue post function with a seed

Hello,

I'm trying to add a post function that creates multiple issues using a seed JQL, and from that seed JQL I'm copying some fields to the resulting issues.

 

I'm facing two errors at this point:

1) Updating a field of type User Picker (single user), I'm not able to use a parser expression to get the first user from a list, but it works if I just copy a field from the current issue, like reporter. My parser expression is: 

first([%{Parent's multi-user-picker-field (Seed)}, %{Parent's different-multi-user-picker-field (Seed)}])

The parser expression validates and returns a result correctly if I'm testing within the post function itself, but on ticket creation I get the following error:

We can't create this issue for you right now, it could be due to unsupported content you've entered into one or more of the issue fields. If this situation persists, contact your administrator as they'll be able to access more specific information in the log file.


2) Updating a field of type Single Issue Picker, I can copy the same field from the current issue to the same field in the created issue, however, I'm trying to copy the issuekey of the seed issue. I should note that the single issue picker field uses a JQL for a valid list, and the seed is part of that JQL and I can select it manually.

 

For the second issue, the initial ticket gets created, but not the ticket from the post function.

JIRA.png

 

Any guidance on what I may be doing incorrectly here would be greatly appreciated!

1 answer

1 accepted

Hi @Pierre Ibrahim

Your configuration is correct, however you have encountered two different problems which I will proceed to explain one by one:

  • Regarding the User picker error, it is caused by a bug within our seed field codes. As a workaround you can use our old seed field codes instead, so your field codes should look as it follows:
^%{parent.aaaaa}

Where aaaaa would be your User picker (multi) field code.

Besides, I would recommend you using the following expression instead, which is less error-prone because it uses some of our parser functions.

first(union(toStringList(^%{parent.aaaaa}), toStringList(^%{parent.bbbbb})))

 

 

  • Regarding the Single issue picker error, at the moment JWT cannot set that field, only read it, so it's not possible to achieve this requirement with our app.

 

However, I can confirm that both this bug and this new feature are already being work on and their fixes will be released as soon as possible.

In the screenshot below you can see an example on how the post-function could look like.

createIssueMultiUser.png

I hope this helps.

Cheers,

Sergio.

Thank you so much @Sergio del Pino _Decadis AG_ ! I appreciate the detailed response. Is there a ticket I can follow for the fixes being released please?

 

Thank you,

Pierre

Hi @Pierre Ibrahim

We do not have an external ticket for the fixes, however, if you want I can let you know when they are being released right in this ticket.

Although I would recommend you to create a ticket in our customer portal letting us know about both of this errors, where it will be easier for us to let you know about the releases.

Cheers,

Sergio.

Like Pierre Ibrahim likes this

Hi @Sergio del Pino _Decadis AG_ ,

I'll go ahead and create a ticket.

Would you mind letting me know what the release date will be as well please?

Thank you

Pierre

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

Marketplace Partner Spotlight: AppLiger

This month the spotlight is on AppLiger. We caught up with Pavel Pavlovsky, CEO and Product Manager, to learn how the company started and what fuels the team's creativity.    Atlassian:...

380 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you