youngmon/atlassian-qna huggingface dataset:
Interactively create linked issue in transition?
Asked by Reinhard Mayr:

We have a JSM / JSW Data Center instance 5.12.8/9.12.8 LTS with ScriptRunner 8.29.0 in place, where we would like to give JSM agents the possibility to pass issues over to JSW developers.

In a regular transition screen I can only use fields related to system/custom fields of the source issue. However, the source JSM project and all the target JSW projects have different field configurations, which makes it impossible for me to use a regular transition screen and the clone issue post-function.

So what I am looking for is to bring up the "Create linked issue" screen for the transition and preferrable be able to customize, e.g. a reduced list of projects and an immutable predefined link type.

Any ideas or hints how to achieve that?

Thank you! Reinhard


Answers:
author: Adolfo Casari
body: This will do:

<https://docs.adaptavist.com/sr4js/latest/features/fragments/built-in-fragments/create-constrained-issue>

comments: author: Reinhard Mayr
body: [@Adolfo Casari](/t5/user/viewprofilepage/user-id/853257) thank you for this hint. I did some testing and basically it works.

However, I encountered another problem: The behavior is called twice, which is of some trouble when changing field values: [ScriptRunner-Behavior-is-called-twice-on-UI-Fragment-quot/qaq-p/2757214](https://community.atlassian.com/t5/Jira-questions/ScriptRunner-Behavior-is-called-twice-on-UI-Fragment-quot/qaq-p/2757214)

Would be great if you had the time to look into that issue as well.

Thanks anyway for your support!

Cheers, Reinhard


Tags: data-center

issue-link

jira-data-center

jira-service-desk-data-center

jira-service-management

jira-service-management-data-center

jira-service-management-server

jira-software

jira-software-data-center

screen

server

transition
Can't configure an agent channel on Teams
Asked by mcattarossi:

Hi all,

when i try connect a JSM project service to Teams, i have a problem configuring the agent channel on Teams channel.

Previously the channel had set the same JSM Project Service, but on project setting I disconnected Teams (in Project settings \> Chat), then i uninstalled the Assist app on Teams.  

Now I want to link the project service to Teams channel again, so i set the "Add to Teams" option in project settings, and JSM tells me to complete the configuration on Teams. So i add the Assist app to my Teams channel, and when the bot asks me which type of channel I want to set (agent channel or request channel), if I select an agent channel the bot tells me:  

*"It looks like all your service projects already have private agent channels. Remove Assist from one of those channels or connect a new service project from Jira Service Management to use [Ticket - Sviluppo \> General](https://teams.microsoft.com/l/channel/19%3AnkOHYGlamynCXRkn0lRKExwAn5OExrvYXIRTzNMyUk01%40thread.tacv2/General) as an agent channel."*   

In conclusion i can't set the agent channel on teams, and i can't reset project chat settings.  
I also tryed to link the project to another channel, but unsuccessfully.

How can help me?


Answers:
author: mcattarossi
body: I solved by myself.

The problem was that my JSM user has lost "Administrator" permission on the project service, so I go to Project settings \> People, then I add the user group to the user i use to configure the agent channel on Teams.

Bye


Tags: assist

chat

cloud

jira-service-management

jira-service-management-cloud
-
Asked by Bhanu KN:

-


Answers:
author: Rilwan Ahmed
body: Hi [@Bhanu KN](/t5/user/viewprofilepage/user-id/3904080) ,

You can make use of [Send Web Request](https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Send-web-request) in the Jira automation.

i.e. Go to project settings --\> Automation  
Create rule for Ticket created and select Send Web Request in action section

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/334529i8D56BB7863992AF5/image-dimensions/309x93?v=v2 "image.png")

comments: author: Bhanu KN
body: ....


author: Pramodh M
body: Hi [@Bhanu KN](/t5/user/viewprofilepage/user-id/3904080)

Hope you have gone through the document here,

<https://www.freshworks.com/apps/jira-freshservice>

<https://support.atlassian.com/jira-service-management-cloud/docs/integrate-with-freshservice>

Let me know if you have any specific requirements here

Thanks,

Pramodh


Tags: cloud

jira-service-management

jira-service-management-cloud
When I move the status to "Done," the date picker should display the current date.
Asked by kalaimani:

Hi

I have a simple workflow where any status can transition to any other status, and the user is restricted to fill out the Valid Due Date field only. The issue I'm facing is that an error message only appears when the field is empty. If the field has a value, whether before or after the due date, the transition is allowed.

I need the Valid Due Date to be automatically set to the current date during the transition. How can I achieve this? or How to restrict the transition when the current date was not matched.


Answers:
author: John Funk
body: Hi [@kalaimani](/t5/user/viewprofilepage/user-id/5363035)

Try the Date Compare Validator in the workflow transition.

![Screenshot.png](https://community.atlassian.com/t5/image/serverpage/image-id/334632i1A711090B3894B6E/image-size/large?v=v2&px=999 "Screenshot.png")


Tags: cloud

jira-service-management

jira-service-management-cloud
how to resolve this error?
Asked by Durga Muthuraman:

![jira.png](https://community.atlassian.com/t5/image/serverpage/image-id/334504iA7F907E5A1205882/image-size/large?v=v2&px=999 "jira.png")


Answers:
author: Ciara TN
body: Hi Durga,

Welcome to the Atlassian community.

It looks like you need to upgrade your plan to be able to use this function.  
The free version limits the 2-way functionality on Jira Service Management Cloud integration.   

Documentation on this [here](https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-jira-service-management/).

-Ciara


Tags: cloud

jira-service-management

jira-service-management-cloud
Link labels to users
Asked by Colin Gwilliam:

I am looking at getting labels linked to users.

We have multiple business units and i want to split users by business unit and apply a label when they create a ticket.

Happy to get peoples advice on best way to achieve


Answers:
author: Christopher Yen
body: A custom field for the business unit would be my recommendation, I've found sometimes labels get tricky to query when there are multiple labels, but might be okay depending on how you plan to use it.   

Would it be a small number of users you're individually applying labels for? an automation rule like this should work.   
![2024-07-09 19_39_54-Window.png](https://community.atlassian.com/t5/image/serverpage/image-id/334493iFD61EC488A36CDBD/image-size/large?v=v2&px=999 "2024-07-09 19_39_54-Window.png")


Tags: cloud

jira-service-management

jira-service-management-cloud
How do I use AQL to perform a filter in a attribute?
Asked by Jason Schwoerer:

When I choose a Building in an object attribute, I would like it to filter the Internal Location attribute to only display those internal locations related to the building.  

The asset (Televisions) is part of the ITAM schema and the Internal Locations is part of the Facilities schema.

![IT Assets.png](/t5/image/serverpage/image-id/334481iA7663FFCED91C723/image-size/large?v=v2&px=999 "IT Assets.png")

![Facilities.png](/t5/image/serverpage/image-id/334482i62D64E6BD0441569/image-size/large?v=v2&px=999 "Facilities.png")

Thanks

Jason


Answers:
author: Vijay Dadi
body: Hello [@Jason Schwoerer](/t5/user/viewprofilepage/user-id/5540102) ,

You can have it as objectType="Televisions"

with this you use

HAVING inboundReferences/outboundReferences

If you can provide more details on use case that would be more helpful.

Vijay


Tags: aql

asset-management

assets

cloud

jira-service-management

jira-service-management-cloud
Jira Service Management automation rule - parse webhook request body for special characters
Asked by Drew Nedderman:

I have a Jira Service Management automation rule that was working as expected until a user filled out a form with special characters in the data.

I'm taking a new ticket from a service project and copying some data to a new Trello card.

The webhook action's request body looks like this:

```
{

"name": "{{issue.summary}}", "desc": "**Name:** {{issue.summary}}\n\n**Job Title:** {{issue.Job title}}\n\n**Team:** {{issue.New team}}\n\n**Manager**: {{issue.Manager.displayName}}\n\n**Role Type**: {{issue.Employment type}}\n\n**Start Date**: {{issue.Start date.fullDate}}\n\n**Desired Office Location:** {{issue.Employee location}}\n\n**Machine Type:** {{issue.Machine Type}}\n\n**Tech Needs:** {{issue.Tech Needs}}\n\n**Additional Comments:** {{issue.description.replace("\n"," \\n")}}\n\n**Attachments:**\n\n{{#triggerIssue.attachment}}\n\n* {{filename}}: {{content}}{{/}}\n\n**Jira Ticket:** {{triggerIssue.url}}", "idList": "MyListID", "idMembers": "member1,member2", "idCardSource""MySourceCard", "keepFromSource": "checklists" }
```

The results are like this:

```
{ "name": ""firstname "nickname" lastname"", "desc": "**Name:** "firstname "nickname" lastname"\n\n**Job Title:** job role\n\n**Team:** Client Services\n\n**Manager**: manager name\n\n**Role Type**: Full Time\n\n**Start Date**: full date\n\n**Desired Office Location:** Remote\n\n**Machine Type:** computer type\n\n**Tech Needs:** \n\n**Additional Comments:** Some comments \n \nEmail: email link \nPhone: phone link \n \nMorecomments. \n\n**Attachments:**\n\n\n\n**Jira Ticket:** MyJiraURL", "idList": "MyListID", "idMembers": "member1,member2", "idCardSource": "MySourceCard", "keepFromSource": "checklists" }
```

I've tried using the .asJsonString function to help with escaping the double quotes, but with no luck. JSON formatters I've tried point to this as the potential issue: \`{{issue.description.replace("\\n"," \\\\n")}}'

Any ideas?


Answers:
author: Drew Nedderman
body: Looks like I was able to resolve this by using the **jsonEncode()** function. I changed the body to use that function with the {{issue.summary}} smart values.

```
{
"name": "{{issue.summary.jsonEncode}}",
"desc": "**Name:** {{issue.summary.jsonEncode}}\n\n**Job Title:** {{issue.Job title}}\n\n**Team:** {{issue.New team}}\n\n**Manager**: {{issue.Manager.displayName}}\n\n**Role Type**: {{issue.Employment type}}\n\n**Start Date**: {{issue.Start date.fullDate}}\n\n**Desired Office Location:** {{issue.Employee location}}\n\n**Machine Type:** {{issue.Machine Type}}\n\n**Tech Needs:** {{issue.Tech Needs}}\n\n**Additional Comments:** {{issue.description.replace("\n"," \\n")}}\n\n**Attachments:**\n\n{{#triggerIssue.attachment}}\n\n* {{filename}}: {{content}}{{/}}\n\n**Jira Ticket:** {{triggerIssue.url}}",
"idList": "650c55b9b4f9b73d31ec0748",
"idMembers": "60f8481fc43352750e5d35bc,57fbafefad9335e482ccb4d9",
"idCardSource": "650c55c82e5ac2e0d4bafeaf",
"keepFromSource": "checklists"
}
```


Tags: cloud

jira-service-management

jira-service-management-cloud
Where can I Find Product Manage
Asked by Vishal Patel:

How can I modify or edit a product in Jira


Answers:
author: Misty Moore
body: Hello,

Certainly! To modify or edit a product in Jira, follow these steps:

Jira Software Data Center:  
To edit an existing issue, select Edit to open the Edit Issue dialog box and modify the issue details.  
If you want to change the fields you need to edit, select Configure fields \> Custom and choose the fields you want to show or hide.  
Finally, select Update to save your changes.  
Jira Cloud:  
If you're in list view, hover over the issue and click the icon, then select from the options to edit an issue.  
If you're in detail view, select the issue and update it in the issue details panel on the right.  
I hope this helps! Let me know if you need further assistance. [mypascoconnect login](https://www-mypascoconnect.com)

Best Regards

misty569


author: Mark Higgins
body: Hi Vishal

Welcome to the Community.

Product Management takes place in the Administration area.

If you do not see Administration at the bottom of the list then you dont have Org admin permissions

![Product List.png](https://community.atlassian.com/t5/image/serverpage/image-id/334469i253C5D4BCF7CC03C/image-size/large?v=v2&px=999 "Product List.png")

![Product Admin.png](https://community.atlassian.com/t5/image/serverpage/image-id/334470iBF084F294F60AF32/image-size/large?v=v2&px=999 "Product Admin.png")

![manage product.png](https://community.atlassian.com/t5/image/serverpage/image-id/334471i5DAA46ABE9F4DC92/image-size/large?v=v2&px=999 "manage product.png")


author: Mikael Sandberg
body: Hi [@Vishal Patel](/t5/user/viewprofilepage/user-id/5539820),

Welcome to Atlassian Community!

By product, do you mean that you have a custom field called product? It would be good if you added a bit more context around what you want to achieve, and maybe add a screenshot as well.

If you have a custom field called product you can modify the values in it by going to Settings \> Issues \> Custom fields, locate the field and then click on the three-dot menu and select Contexts and default value.


Tags: cloud

jira-service-management

jira-service-management-cloud
"Real time collaboration" not available for Jira Service Management?
Asked by Tony Morrison:

I'm hoping I'm just missing something but my organization uses both Jira "Work" Management and Jira "Service" Management for different purposes.

In our Jira Work Management issues, [real time collaboration](https://support.atlassian.com/jira-work-management/docs/collaborate-in-real-time/) is available but this does not seem to be the case in Jira Service Management where it would be much more useful in making sure a ticket is not being worked on by multiple agents at the same time.

I've been searching for this for a while and finally found the article I linked above listing this as a function of Jira Work Management.   

Anyone have "real" info on this available?


Answers:
author: Tony Morrison
body: I received an answer from support in my ticket request.

Short version is that it is not currently available but there is a feature request for it. If you are interested, please hit this link, add your vote and comment to help spur it along!

Viable details from their response is below:

Visual indicators when multiple users are editing or viewing a Jira Issue are not available out of the box but our team understands how it may be valuable to some businesses, so we have an open feature request for this issue, which can be found here:

* [JRACLOUD-80241: Collaborative Editing - Add visual indicators when multiple users are editing or viewing a Jira Issue](https://urldefense.proofpoint.com/v2/url?u=https-3A__jira.atlassian.com_browse_JRACLOUD-2D80241&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=KvHHoayo6DY9i9Za5HCGmaD4PXrPe3MO5DDscc2cxiM&m=H10DwvJn04zY8sIVsUnP1Hjv7xpbzE4W9LTJ5bQ0AACS5jPWF1sahqm2uuzhCE-Q&s=D8UzEoe0Gn4eHaGz9ZRBzFECNoqguPRbZYbvU8_GwfA&e=)

I would like to suggest that you both vote for this issue (by clicking '**Vote for this issue** ') and leave a comment to express your thoughts and provide additional information. This will increase its visibility to our development team.  
Please also be sure to **watch it**, so that you are notified when this is fixed in a future release.


author: John Funk
body: Hi Tony,

That is correct real time collaboration is not yet available for Jira Service Management projects.

comments: author: John Funk
body: I have voted for it. Thanks for sharing!


Tags: cloud

jira-service-management

jira-service-management-cloud
Data Center 8.2 - Custom Fields
Asked by JoshTheBoss zn:

Hi,

We are using data center and need to include custom fields in automation rule emails.

We cannot get customfields to display. Have tried various formatting eg:

{{issue.fields.customfield_12345}}

{{issue.fields."Reason for Change"}}

{{issue.customfield_12345.names}}

{{issue.names.customfield_12345}}

{{issue.names.Reason for Change}}

{{issue.CustomField.12345}}

Not sure where we are going wrong. Would appreciate any help.

Thanks


Answers:
author: John Funk
body: Hi Josh,

For automation rules, just use: {{issue.customfield_12345}}

What type of field is it?


author: Nicolas Grossi
body: [@JoshTheBoss zn](/t5/user/viewprofilepage/user-id/4170313) Welcome i hope this doc helps you: <https://confluence.atlassian.com/automation0802/smart-values-in-jira-automation-1283687184.html>

HTH

Nicolas

comments: author: JoshTheBoss zn
body: I did check that. Using the restAPI I can see that the customfield is - names.customfield_17939

When trying {{issue.names.customfield_17939}} - the email does send out but simply shows "names.customfield_17939" in the email.


Tags: data-center

jira-service-desk-data-center

jira-service-management

jira-service-management-data-center
Triggering when issue is linked to a epic
Asked by Ryan:

Trying to find a way to trigger jira automation when an issue is linked to a epic but can't find anyway to do that

the only way I can come up with is to create a new field, trigger on issue update and check if the current epic for the issue is the same as the new field i created to hold an epic, if it's not the same, means epic link has been updated. either way it will now copy the epic to the new field. but this seems like a really round about way to add such a check...


Answers:
author: Bill Sheboy
body: Hi [@Ryan](/t5/user/viewprofilepage/user-id/1657310)

Yes, that is a known issue that changing the epic link/parent doesn't trigger yet, so the work-arounds are still needed.

* <https://jira.atlassian.com/browse/JIRAAUTOSERVER-15>
* <https://codebarrel.atlassian.net/browse/AUT-1987>

Best regards,  
Bill

comments: author: Ryan
body: [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313) will make do with the workaround for now then, thanks!

Regards,

Ryan
Copy comments with photo atachments
Asked by Kristian Partl:

Hello,  
i have issue with copying comments using automation when i copy comment using smart value {{comment.body}} and that comment including image than automation will not copy that image.  
Thanks for help.


Answers:
author: Joy Chiu
body: Hi [@Kristian Partl](/t5/user/viewprofilepage/user-id/4478476)

Currently, we don't support copying with attachments.

An improvement ticket is created for this issue. this <https://codebarrel.atlassian.net/browse/AUT-2249>

comments: author: Kristian Partl
body: Thanks for reply.


author: Admin Julian Espinoza
body: three years later, any movement on this?


author: Kristian Partl
body: [@Admin Julian Espinoza](/t5/user/viewprofilepage/user-id/5441663) you can fix this by using an automation for coping all attachments.


author: Admin Julian Espinoza
body: [@Kristian Partl](/t5/user/viewprofilepage/user-id/4478476) That works quite well initially, but the problem is copying over images in comments placed afterwards. If I put automation in place to copy all attachments again, I end up with duplicate attachments in the issue it's copying to.


author: Kristian Partl
body: If you first use action to delete all attachments and then Copy attachments, it should work.  
I have had this done like this and it worked perfectly.


author: Admin Julian Espinoza
body: That's a great idea, thank you [@Kristian Partl](/t5/user/viewprofilepage/user-id/4478476)'ll test it out and see how it works.


Tags: cloud
Mail a list of issues with assignee name
Asked by Mark Cartwright:

Hello,

<br />

I'm looking to send a mail to a distribution list that contains a list of issues from JQL.

Ideally I'd like it to have a URL to each ticket with the assignee name next to it:

++JT-1002++ is assigned to ++Joe Bloggs++

I'm using this in the body of the mail but it's not putting the assignee's name of each ticket next to it's URL:

{{issues.ToURL}} assigned to {{issue.assignee.displayName}}

Please can someone advise? I realise this may not be possible yet.

<br />

Thanks in advance.

Mark


Answers:
author: Tom Williams
body: Hi [@Mark Cartwright](/t5/user/viewprofilepage/user-id/2505994),

I'd tackle this using the lookup issues action. Input the JQL to get the lists of issues you are trying to send and then in the body of the mail include this;

```
{{#lookupIssues}}
<li> <a href="{{url}}">{{key}}</a> assigned to {{assignee.dislayName}}
</li>
{{/}}
```

comments: author: Mark Cartwright
body: Hi [@Tom Williams](/t5/user/viewprofilepage/user-id/3514085)

<br />

Thanks very much for such a prompt reply. Sadly this hasn't worked for me.   
I should probably have mentioned we're using Jira Server and no Cloud.

Would this make the difference?

Thank you.


author: Bill Sheboy
body: Hi [@Mark Cartwright](/t5/user/viewprofilepage/user-id/2505994)

Adding on to what Tom suggests, for Jira Server/Data Center automation, the equivalent to Cloud's Lookup Issues is to use a scheduled rule and change the settings to treat the issues as a batch. Then you can use the {{issues}} (note the plural) the same way as Lookup Issues.

Best regards,  
Bill


author: Mark Cartwright
body: Hi [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313)

That's got it working perfectly. Thank you very much!

[@Tom Williams](/t5/user/viewprofilepage/user-id/3514085) Thank you too for the original script!


author: Ashu Tyagi
body: [@Mark Cartwright](/t5/user/viewprofilepage/user-id/2505994) Have you tried using "**Subscriptions**" option for JQL?

You can arrange fields which you want to sent to end users as you wish also if you want to sent results to a Distribution list then you can create a Jira User from that DL and subscribe the JQL with that User

comments: author: Mark Cartwright
body: Hello [@ASHU TYAGI](/t5/user/viewprofilepage/user-id/3748503)

Thank you for the suggestion, appreciated!


Tags: cloud
Is there a way to add a description and start date when creating a new version through automation?
Asked by Craig Rogers:

We are on the cloud instance of Jira.  

I managed to, on the trigger of manually releasing the current version to create a new one with the same name, incremented by 1.  

For example on releasing 'ABC_01', a new version named 'ABC_02' is automatically created.   

However, I would like to be able to set the 'Start Date' to now and add a 'Description' which could be the version name for the new version created through the automation.   

Is that possible as stands?  

Any help / guidance greatly appreciated.  

Thanks, Craig


Answers:
author: Bill Sheboy
body: Hi [@Craig Rogers](/t5/user/viewprofilepage/user-id/3373121)

Short answers: no, and yes...

No, not out of the box: There are several open suggestions to support add/edit of the other fields for versions from automation:

* <https://codebarrel.atlassian.net/browse/AUT-1188>
* <https://codebarrel.atlassian.net/browse/AUT-1335>
* <https://codebarrel.atlassian.net/browse/AUT-2027>

Yes, how about a work-around: What you can do is either create or update the version using the REST API, called from an automation rule web request. Here are some references to help with that approach:

* <https://community.atlassian.com/t5/Jira-articles/Automation-for-Jira-Send-web-request-using-Jira-REST-API/ba-p/1443828>
* <https://docs.atlassian.com/software/jira/docs/api/REST/1000.824.0/#api/2/version-createVersion>
* <https://docs.atlassian.com/software/jira/docs/api/REST/1000.824.0/#api/2/version-updateVersion>

Best regards,  
Bill

comments: author: Craig Rogers
body: Thanks for the response and information [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313) , will look to check out the API / web request route.