youngmon/atlassian-qna huggingface dataset:
Service Desk Widget appears broken when posting
Asked by Peter Tweed:

Widget (Service Desk / widget that is embedded in a webpage) is showing an error when posting API details taken from browser dev tools to URL (redacted) <https://jsd-widget.atlassian.com/api/embeddable/XXX/request?requestTypeId=144>   

It is a simple radio button with two options and we haven't tried to touch any widget java code (doesn't matter where we embed it).  

From browser dev tools:

API Request:

```
{"fields":[{"id":"customfield_10399","value":"11048"},{"id":"customfield_10396","value":"test.test.com"},{"id":"description","value":"test please delete"},{"id":"email","value":"dummy@redacted.com"}]}
```

API response:

```
{ ??? "friendlyReason": { ??????? "title": "We couldn't create a request", ??????? "body": "Map<String, String> expected for field with id customfield_10399 " ??? }, ??? "technicalReason": null }
```

<br />

Anything we could be doing wrong? I'm sure this widget was working last week without issue!


Answers:
author: Peter Tweed
body: Atlassian support were able to replicate the issue on an internal test system and their dev team has now pushed out a fix for the underlying issue. Internal support ref is JST-1027424 in case someone else runs into the same thing in future!


author: Christopher Yen
body: Hi [@Peter Tweed](/t5/user/viewprofilepage/user-id/3794786) , welcome to the community.

If there hasn't been any changes on your side and the widget was working last week without issue I would try reporting a bug to Atlassian Support.

I don't see any incidents on Atlassian's statuspage but I did see a similar community post so might be something to let Atlassian Support know about [here](https://support.atlassian.com/contact/)

comments: author: Peter Tweed
body: Thanks - yes - I have a support ticket raised.


Tags: cloud

jira-service-management

jira-service-management-cloud
ASSET API to get the import result
Asked by Samuel Gatica:

Hi All,

I need to get the details of the import using the API.

I discovered in the API documentation that the endpoint "[Get importsource {importSourceUuid} executions {importExecutionUuid} status](https://developer.atlassian.com/cloud/assets/rest/api-group-importsource/#api-importsource-importsourceuuid-executions-importexecutionuuid-status-get)" might be applicable to my needs. However, I am uncertain about the required parameters.

* **importExecutionUuid**
* **importSourceUuid**

Could you please let me know where I can obtain them?

<br />

Thanks in advance!


Answers:
author: Marini Marini
body: Hi [@Samuel Gatica](/t5/user/viewprofilepage/user-id/753028)

If I understand correctly, you have triggered an Asset Import and it is a long running import and would like to get the details of the import such as the status or progress. In this case, you can use the same API to [start the import](https://developer.atlassian.com/cloud/assets/rest/api-group-import/#api-import-start-id-post) to get the status or progress in percent.

```
// To trigger an Assets import
curl --request POST --url https://api.atlassian.com/jsm/assets/workspace/<workspace-id>/v1/import/start/<import configuration id> --header 'Accept: application/json' --header 'Authorization: Basic <encoded api token>'

// To check the import status (only work if the import is still running. Otherwise, you will get 404 error.)
curl --request POST --url https://api.atlassian.com/jsm/assets/workspace/<workspace-id>/v1/import/start/<import configuration id>/properties/status --header 'Accept: application/json' --header 'Authorization: Basic <encoded api token>'

// To check the import progress in percent (only work if the import is still running. Otherwise, you will get 404 error.)
curl --request POST --url https://api.atlassian.com/jsm/assets/workspace/<workspace-id>/v1/import/start/<import configuration id>/properties/`progressInPercent` --header 'Accept: application/json' --header 'Authorization: Basic <encoded api token>'

```

Take a look at the Response from the above [start the import](https://developer.atlassian.com/cloud/assets/rest/api-group-import/#api-import-start-id-post) API and you will see **importExecutionUuid.** I guess you can only get the **importExecutionUuid** if you trigger the import from an API, not from the GUI.

While for the **importSourceUuid,** if I can guess, it is maybe referring to the **Import Configuration ID** as in this [KB article](https://confluence.atlassian.com/jirakb/how-to-schedule-assets-import-using-automation-for-assets-1155466867.html).

I hope it helps.

-Marini

comments: author: Samuel Gatica
body: Thanks [@Marini Marini](/t5/user/viewprofilepage/user-id/5298178)


Tags: api

assets

cloud

jira-service-management

jira-service-management-cloud
How to fix a layout Issue of the Widget on my webapp
Asked by audrey:

Hello everyone

After batteling to integrate the widget on my webapp, the widegt turns to have apparently a transparent background, I cannot find how to fix this. It is really difficult to read the text over my webapp background

Any ideas what to do?


Answers:
author: dominique_ruest
body: Looks like something that was broken recently. Used to work fine but now we're also getting a transparent background on our live app.

comments: author: audrey
body: how do we raise this issue to altassian?


author: Christopher Yen
body: [@dominique_ruest](/t5/user/viewprofilepage/user-id/5562200) [@audrey](/t5/user/viewprofilepage/user-id/5562193)

Welcome to the community, sorry to hear about the issue you're both experiencing. You can submit a technical issue / bug here, <https://support.atlassian.com/contact/>


author: audrey
body: Thanks [@Christopher Yen](/t5/user/viewprofilepage/user-id/5051689) [@dominique_ruest](/t5/user/viewprofilepage/user-id/5562200) I cannot raise a case apparently as I have a free account I am authorized only to have self help. Any chance you could raise an issue for us please?


author: dominique_ruest
body: In the same situation here, apparently it takes some kind of authorization to report a bug...


author: Christopher Yen
body: [@audrey](/t5/user/viewprofilepage/user-id/5562193) [@dominique_ruest](/t5/user/viewprofilepage/user-id/5562200) could either of you walk me through where this widget is and how to use it? I'll utilize it on my side so I can accurately represent the issue to submit a ticket

comments: author: audrey
body: hi [@Christopher Yen](/t5/user/viewprofilepage/user-id/5051689)

I made a video for you to see how the display look like on my webapp

The widget looks like having not background color <https://vimeo.com/995879349?share=copy>


author: Christopher Yen
body: ![2024-08-07 13_44_31-Window.png](https://community.atlassian.com/t5/image/serverpage/image-id/340620iBEEF2CA6D3029D61/image-size/large?v=v2&px=999 "2024-08-07 13_44_31-Window.png")

Hi Audrey, thanks for the video. I tried to replicate but it looks like I'm not getting the transparent background in my instance.   

I wonder if making an update to the color or background pattern from the widget settings would reset it?


author: dominique_ruest
body: It appears the issue was resolved on your end. The widget now displays fine.


Tags: cloud

jira-service-management

jira-service-management-cloud

widget
Bulk delete request types
Asked by Mariano Edvardsson:

Hello! Is there any way to bulk delete request types from the API on Cloud?

I know how to handle the database on JSM DC but Cloud I'm kinda stuck with doing it manually which is a pain.

I've imported the Jira API Postman Collection but it's just not loading, so I was hoping someone could help me and point me in the right direction on how to achieve this.

A \*.csv list or regex would do. Thanks!

Thanks you in advance.


Answers:
author: Mariano Edvardsson
body: Answered my own Q: Use this app Optimizer for Jira.


Tags: cloud

jira-service-management

jira-service-management-cloud
Automation to mark ticket as done after satisfaction is provided
Asked by Richard Granger:

I am having an issue with Jira automation that whenever someone provides satisfaction feedback on a ticket, the ticket changes status back to InProgress. I added an automation rule that should close after satisfaction changes, but it fails with the following error code:  

<br />

Destination status could not be resolved. If using a smart-value ensure this resolves to a numeric status ID or untranslated name for issues (with current status): QHD-981 (Done - 10001)  
What am I doing wrong that is causing this rule to fail?![Screenshot 2024-08-06 094603.png](/t5/image/serverpage/image-id/340297i94A745E6A1BB3560/image-size/large?v=v2&px=999 "Screenshot 2024-08-06 094603.png")


Answers:
author: Scott Schellhardt
body: HI Richard,   

Welcome to the Atlassian Community ! I think what is going on here is the automation is looking for the specific status id Typically when smart values are referenced, it needs to use ID vs name. Can you send a screenshot of the "Then"/Action configuration ? It also could be something in the workflow that is preventing this. I hope this helps !

comments: author: Richard Granger
body: ![Screenshot 2024-08-06 104329.png](https://community.atlassian.com/t5/image/serverpage/image-id/340310iD6F63494FB440052/image-size/large?v=v2&px=999 "Screenshot 2024-08-06 104329.png")  
So do I need to change the status with a number?


author: Scott Schellhardt
body: I would go to the ticket in question and check the automations running in it,   

Then I would go to the Workflow and check the transitions to verify there is a post function running from the transition to set the resolution.   

<br />


Tags: cloud

jira-service-management

jira-service-management-cloud
To restrict the user by selecting few options under Custom field
Asked by Umamaheswari Viswanathan:

Our releases field contains set of values. Now I want to restrict the user from selecting the "Completed" releases. Expectation is, users should not create any issue with completed releases. How shall we restrict/disable the values/options under custom field


Answers:
author: Ignacio Pulgar
body: Hi [@Umamaheswari Viswanathan](/t5/user/viewprofilepage/user-id/4746230) ,

If you were using the native Versions (aka Releases), then you just need to [archive a version](https://confluence.atlassian.com/adminjiraserver/managing-versions-938847201.html#Managingversions-archiveArchiveaversion) for it to be hidden from the selectable values of the fixVersion field.

Regards


author: Mikael Sandberg
body: You would need an app to do that, like [Behaviours - Scriptrunner](https://marketplace.atlassian.com/apps/1228522/behaviours-scriptrunner-for-jira-cloud?hosting=cloud&tab=overview) or [Power Scripts](https://marketplace.atlassian.com/apps/43318/power-scripts-jira-workflow-automation?hosting=cloud&tab=overview). Both of these can control what is visible in a field.
Timesheet Automation
Asked by Kavitha Vasudevan:

In Jira, Is there a way to trigger mail when work log of the week is not met

To Ellaborate further

Team member: Not filled timesheet / Not met the average time log on Jira

Manager - Gets the auto trigger mail with the defaulter list


Answers:
author: Darryl Lee
body: Hi [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313) and [@Kavitha Vasudevan](/t5/user/viewprofilepage/user-id/4792855)

At first I was thinking that if Kavitha just wanted to send simple notifications when users average time logged is not past a certain threshold this could be done with Automation, but I ran into a problem of trying to access Worklog data when you are **NOT** using a Worklog trigger but rather a manual trigger (in production this would be a schedule trigger.)

I tried {{issue.worklog}}, {{issue.worklogs}}, and {{worklogs}} and {{worklog}} and got nothing.

It seems that finding the issues you could use a [Lookup action](https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Automationactions-Lookupissues) to find issues that had work logged in the past week like so:  

    project = "Project A" AND worklogdate >= startOfWeek()

But yeah, I couldn't figure out how to get just the last week's worklogs out so you could sum them up. And then you'd also have to get all the other issues' totals, and then average them. Tricky.

Any thoughts, [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313) ? I guess maybe this does end up being something you have to buy an app for.

comments: author: Bill Sheboy
body: Hi!

I suspect this could be done by calling REST API functions, or by more generically comparing the current sum of remaining time each week from a JQL query. And there are always marketplace addons...however...

[@Kavitha Vasudevan](/t5/user/viewprofilepage/user-id/4792855) how often does this happen, a team member not logging time? If this is infrequent and for a few people perhaps a conversation would solve the issue. If instead it is for many people on the team, maybe people do not understand the purpose/value of logging the time. Having those discussions before building/buying an addon solution will help.

Kind regards,  
Bill


author: Andriy Zhdanov
body: Hi Kavitha,

It is possible with an app additionally installed in Jira, e.g. [Timesheet Reports and Gadgets](https://marketplace.atlassian.com/apps/294/timesheet-reports-gadgets?tab=overview&hosting=cloud), see <https://primetimesheet.atlassian.net/wiki/spaces/KB/pages/114294787/Email+Time+Sheet+Report>

Thank you.

comments: author: Bill Sheboy
body: Hi [@Andriy Zhdanov](/t5/user/viewprofilepage/user-id/853303)

In accordance with the community guidelines for marketplace and solution providers, please ensure you *disclose in the text of your post your relationship to a vendor* when recommending their products.

Please see the community guidelines for more information.

<https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Atlassian-Community-online-guidelines-for-Marketplace-and/ba-p/689723>

Kind regards,  
Bill
Automatically increase confluence page version number
Asked by Aleksandar Todorovic:

So i'm trying to automate the release notes and create a confluence page once new release is created. page is created however i'm having issues updating the page since it requires an increase in version number for every ticket in release and only the first ticket will be updated.

The request looks like this:

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

Payload:

```
{
"id": "{{createdPage.Id}}",
"type": "page",
"title": "{{version.name}}",
"version": {
"number": 2
},
"space": {
"key": "CLINT"
},
"body": {
"storage": {
"value": "{{issue.key}} {{issue.type}} {{issue.summary}}",
"representation": "storage"
}
}
}
```

The first ticket that is found will be updated but the request will be rejected for every following ticket since version number needs to be increased by 1.

```
"message":"com.atlassian.confluence.api.service.exceptions.ConflictException: Version must be incremented on update. Current version is: 2"}?
```

I have tried by searching with JQL latestReleasedVersion(), but it's bascially the same, every time it will try to update the page multiple times for each ticket and fail.

I've tried sending a get request to get the version number for the created page and reference the version with {{webResponse.body}} smart value and increase this by 1, but this also failed as it seems it can't get the version with {{webResponse.body.version}} or other variants. The response part that contains the version looks like:

```
_links":{"self":"https://URL-goes-here/wiki/rest/api/content/3368648790/version/1"}}]
```

However i'm using older jira version without JSON parser and just can't seem to figure out how to update the version automatically or get all the tickets and update the page at once.


Answers:
author: Steven Zhang
body: Hi Aleksandar, have you tried the "Create variable" action? You could define a variable like "count" starting from 1 on the top, and then use the "Create variable" action again on the branch to + 1, such as {{#=}}{{count}}+1{{/}}. And then use the "count" variable in your request action.
Automation to Link all Issue type as Bug under a subtask
Asked by Dave:

Hi There

I want to link all issue type as Bug under a subtask can this be done thru automation.


Answers:
author: Kelly Arrey
body: Hi [@Dave](https://community.atlassian.com/t5/user/viewprofilepage/user-id/5083418),

Task and Bug are at the same level in the default Jira Issue hierarchy, e.g.

* Epic
  * Story, Bug, Task
    * Sub-task

One approach is to create a custom link type for this - we call ours "contains \<-\> belongs to", e.g.,  
![2022-12-15_08h36_57.png](https://community.atlassian.com/t5/image/serverpage/image-id/230614i1001165A55885376/image-size/large?v=v2&px=999 "2022-12-15_08h36_57.png")  
(We chose those names so that the few upward "belongs to" links would show above the many downward "contains" links when you're looking at the issue details.)  

Then you could link the Bugs to a Task so that the Bugs "belong to" the Task, and the Task "contains" the Bugs. We use the [Structure by Tempo\*](https://marketplace.atlassian.com/apps/34717/structure-by-tempo-project-portfolio-management-for-jira?hosting=cloud&tab=overview) app to view and work with our custom Jira Issue hierarchy. HTH,  

Kel  

\*Full disclosure: I am a happy Structure by Tempo customer.

comments: author: Kelly Arrey
body: Hi [@Dave](/t5/user/viewprofilepage/user-id/3925250) in the interests of trying to understand the situation better so we can help:

* What's the problem you're trying to solve?
* Why do you want to link all the Bugs under a single Task?
* What are you going to do with the Bugs once they're under this Task?
* What are you going to do with the Task after all the Bugs are under it?

Kel


author: Hana Ku?erov?
body: Hi [@Dave](/t5/user/viewprofilepage/user-id/3925250) ,

to be honest I don't understand your request. Can you please be more specific? Maybe some example will help. Thank you.

comments: author: Dave
body: I want to consolidate and link all issue type Bug under a Task


author: Kelly Arrey
body: Hi [@Dave](/t5/user/viewprofilepage/user-id/5083418),

Please see my post below ... or above ... somewhere :-) , hope it helps.

Kel


author: Hana Ku?erov?
body: [@Dave](/t5/user/viewprofilepage/user-id/3925250) I'm sorry, but what do you mean by consolidate? I still don't understand what you are trying to achieve.

[@Kelly Arrey](/t5/user/viewprofilepage/user-id/510430) has provided great set of questions - would you please try to answer them?

Thank you.
Reopen automation doesn't exclude words in email
Asked by Functioneel Beheer Schadefonds:

I got a reopen automation rule where the issue is reopened after a new comment is made. It should exclude different forms thank. So I made a advanced compare condition that compares {{comment.body}} with a regex containing thank with the condition does not contain. If someone comments with thanks through Jira on the issue the rule is blocked. The problem is when someone reacts to a mail and that one is scraped and put in a comment. In the audit log the email reaction with thanks goes through and the automation is a succes. Do I need a different field when a email is made into a comment?


Answers:
author: Functioneel Beheer Schadefonds
body: The problem was not being a email, but it was in the compare two values. I had it on does not match regular expression, but that only triggered in some cases. I needed a does not contain. I solved it by having it by making the condition "contains regular expression" and rewrite the regex with negative look ahead by adding "?!".

compare two values checks if:

{{comment.body}} contains regex \^(?i)(?!\[\^,\]\*dank\[\^,\]\*\|\[\^,\]\*thank\[\^,\]\*)

Now the rule fails if a comment contains a form thanks.


author: Bill Sheboy
body: Hi [@Functioneel Beheer Schadefonds](/t5/user/viewprofilepage/user-id/4703520)

I am not following what you are asking as your need. Perhaps if you...

* post images of your complete automation rule and
* the audit log details showing the execution, and
* explain how it does not work as you expect...that will provide context for the community to offer suggestions

Thanks, and kind regards,  
Bill
In automation, can the description field be wiki markup instead of plain text?
Asked by Jonathan Smith:

In Automation, one of my business units would like to modify the description field and insert **@mentioned users** before the issue is created.

* Description field displays as plain text in automation
* The purpose of this is to not use the 'created' notification scheme and instead mention users on parent tickets so assignees don't get 50+ sub task emails.

Is there a way in automation to make the description field wiki mark-up so I can achieve what the business is looking to do? Is there a better way in handling notifications overall?

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

Thanks,

Jonathan


Answers:
author: Stefan Salzl
body: Hi [@Jonathan Smith](/t5/user/viewprofilepage/user-id/1254033) ,

In order to mention users in fields you have to use the user?s accountID.

See a detailed description below:

<https://support.atlassian.com/cloud-automation/docs/jira-smart-values-users/#Mention-a-user-in-a-field>

Best  
Stefan

comments: author: Jonathan Smith
body: [@Stefan Salzl](/t5/user/viewprofilepage/user-id/4616993) The test users got the notifications as desired (after I added them to the project...). Thank you for your assistance.


author: Jonathan Smith
body: [@Stefan Salzl](/t5/user/viewprofilepage/user-id/4616993) Can this process work for Atlassian teams as well? I tried to insert the ID for the team, but it comes up as unknown user.


author: Jonathan Smith
body: Mentioning a team in the wiki description field works fine, but again, I am trying to do this in the automation description field ;)


author: Mark Segall
body: Hi [@Jonathan Smith](/t5/user/viewprofilepage/user-id/1254033) - Automation doesn't have a wysiwyg editor. However, if the field is configured for wiki renderer, you can pass formatting by using markdown. For example, If I wanted to send something like:

My **sample** *formatted* text with:

* bullet 1
* bullet 2

It would look like this:

```
My *sample* _formatted_ text with:
* bullet 1
* bullet 2
```