I configured JSM to, whenever a problem ticket is created in it, a related issue is created in Jira. Depending on some data inserted in the ticket, a team should be set into Jira issue, which is used to filter the item into the right board team.
For doing this work, I'm using JMWE "Create issue(s)" post-function, but the problem is that all my tries of doing that failed.
I have already tried to send:
id:5;
"id":5;
id:"5";
"id":"5";
"5";
5
externalId:db755f17-f9f6-432b-a21f-b5aa911ce59d-5;
"externalId":db755f17-f9f6-432b-a21f-b5aa911ce59d-5;
externalId:"db755f17-f9f6-432b-a21f-b5aa911ce59d-5";
"externalId":"db755f17-f9f6-432b-a21f-b5aa911ce59d-5";
"db755f17-f9f6-432b-a21f-b5aa911ce59d-5";
db755f17-f9f6-432b-a21f-b5aa911ce59d-5; (the image above)
title:Open Finance;
"title":Open Finance;
title:"Open Finance";
"title":"Open Finance"
"Open Finance"
Open Finance
But none of them worked. I always get the error: "Team with ID 'db755f17-f9f6-432b-a21f-b5aa911ce59d-5 ' could not be found" (or something very similar).
Hi @Marcelo Valença ,
can you please share a screenshot of the "Expected Value" help tab of the value editor for that field?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Marcelo Valença ,
as you can see, this field is an Advanced Roadmap for Jira (formerly Jira Portfolio) field. As such, it is only available if you are running Jira Software Premium. Are you?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Then the ID needs to be a number. To find out that number, assign the Team to an issue and test the following expression against that issue:
{{issue.fields.customfield_10001.id}}
Note that the team needs to be available for the current project.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@David Fischer yes, this was one of my first attempts, but it didn't work:
The team ID is 5:
but when I try to configure it, I always get this error:
Do you have any idea what is possibly going on?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
From the error message, it looks like there's an extra newline after 5. Can you check the value entered in the editor?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is exactly how my code is:
Unfortunately there is no extra newline.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually, there is. Plenty. I count 29 lines :)
That's because you do have newlines in the Nunjucks template, to make it look better. The solution is to use the "whitespace control" feature of Nunjucks, as explained in the "Blocks and tags" help tab. For example:
{% if issue.fields.customfield_10171.value == "Open Finance" -%}
5
{%- endif %}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@David Fischer, I continued to edit my code to consider the other teams and, when I did so, the error happened again. I only added another team ID in another line. Can you help me to understand what is going on?
This is the error in the log:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.