youngmon/atlassian-qna huggingface dataset:
Create a conditional Jira Automation from one custom field to populate another custom field
Asked by Nicole_Selph:

I have been searching the community but haven't found exactly what I am looking for, so hopefully I can get a bite reaching out through here.

Currently, our team uses "t-shirt" sizing to equate to a level of effort. In the past this has been fine. Now, I am trying to create an automation that will help our team equate the t-shirt sizing to actual level of effort.

What I am wanting to accomplish and clearly failing at is this:

If custom field "T-shirt size" equals to "small", then set numerical custom field "Level of Effort" to "5"

Is this something that is possible to do in Automation? I am VERY new to Jira, but would love to make this work if possible.


Answers:
author: Mikael Sandberg
body: Hi [@Nicole_Selph](/t5/user/viewprofilepage/user-id/5501577),

Welcome to Atlassian Community!

Yes, this is something that can be done via automation and it should be fairly straightforward to do. I would trigger on field changed on the t-shirt field and then use the IF/Else condition to change the other field corresponding to the size picked. Your automation would look something like this:

![Screenshot 2024-05-20 at 1.26.31?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/324860iF477BDFFE1658736/image-dimensions/282x433?v=v2 "Screenshot 2024-05-20 at 1.26.31?PM.png")

comments: author: Nicole_Selph
body: [@Mikael Sandberg](/t5/user/viewprofilepage/user-id/853579)

Thank you so much, this worked like a charm!


Tags: jira-service-desk-cloud

jira-service-management

jira-service-management-cloud
Customer portal MFA
Asked by Vilas Singh Koka:

Hi,

We have a customer who want's MFA to be enabled for customer portal.

Is this possible? if so please can I be pointed to the right documentation.

Also let me know is it possible with out any addons.


Answers:
author: Joseph Chung Yin
body: [@Vilas Singh Koka](/t5/user/viewprofilepage/user-id/5424639) -

Welcome to the community. For Multi-Factors Auth, you will need to have Atlassian Access (separate subscription) for your site where you can use your own IDP to control who has access to your site.

<https://support.atlassian.com/security-and-access-policies/docs/understand-atlassian-access/>

However, you can setup your JSM project customer permissions setup to control visibility of the JSM project - meaning if it is set to "Restricted", then he/she must be added manually by the project admins to the project in question. From the Help Center portal UI, he/she will not see the project being listed at all to engage with issue submission process.

Hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.


Tags: cloud

jira-service-management

jira-service-management-cloud
Group Permissions for Dashboards
Asked by Dale Kalsow:

Hi, I am new to administrating Jira Service Management. I see when I create a new dashboard on of the options I have is to set the Viewers property by Group. Where do I go to setup those groups?

Thanks


Answers:
author: Brant Schroeder
body: [@Dale Kalsow](/t5/user/viewprofilepage/user-id/5501568) Welcome to the Atlassian community

You should be able to share a dashboard using any of the following:

* Group---A group of Jira users.

* Project---All members or members with specific project roles working on one or multiple projects*.*

* Any logged-in user---Any user who is logged in to your Jira Cloud site.

* Public---*Public* sharing means sharing the dashboard with users who are *not* logged in to your Jira Cloud site. Note that if you share a dashboard publicly, it will be visible and searchable on the internet. See [Prevent or remove public access](https://support.atlassian.com/jira-cloud-administration/docs/prevent-or-remove-public-access/) for more information.

* User---An individual user.

<https://support.atlassian.com/jira-cloud-administration/docs/manage-shared-dashboards/>

A group is a created and administered within Jira by a Jira administrator. <https://support.atlassian.com/jira-cloud-administration/docs/create-and-update-groups/>

Because this is something that they can only administrer I would suggest using Project or a specific project role. Hopefully you are a project admin and then it would allow you to manage access to that dashboard.


author: Dale Kalsow
body: Thanks


author: John Funk
body: Hi Dale - Welcome to the Atlassian Community!

Groups are added under User Management administration. Settings \> User Management.

You must have Organization Admin permissions or User Management permissions.


Tags: cloud

jira-service-management

jira-service-management-cloud
Seeking assistance with post-function condition
Asked by Durell Demartini:

Hello, I've been reviewing documentation on post-functions for Assets custom fields and I'm using the "Set a Jira custom field with the attribute value from a selected object" post-function to set a value of an attribute from an object to a text field. This is working as expected, but I'm adding the post-function to a common workflow used for many request types, so I'd like to add a condition to have it be triggered only for one specific request type.

When the condition field is blank, the post-function is successful. But when I use the code below, it doesn't work. I'm trying to cobble together some examples that I have seen online and in our environment, but this is not my area of expertise, so I would greatly appreciate any suggestions that you can offer for this script.

```
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.Issue
def requestTypeCF = customFieldManager.getCustomFieldObject(Request Type 15293) //Request Type
def requestTypeCFVal = issue.getCustomFieldValue(requestTypeCF)

//if 'requestTypeCFVal' value is as required then evaluate to true
if (requestTypeCFVal == "Onboarding Service Request" ) {
return true;
}
return false;
```

Thanks in advance for any assistance you can offer.


Answers:
author: Stephen_Lugton
body: [@Durell Demartini](/t5/user/viewprofilepage/user-id/4229668), a workaround to that would be to add a second connection to your workflow between the statuses you're transitioning from and to, you could then set a value condition on one of **Issue Type = "Onboarding Service Request"** with your post-function, and have a value condition on the other of **Issue Type != "Onboarding Service Request"**for all other issue types without the post-function

comments: author: Durell Demartini
body: Hi [@Stephen_Lugton](/t5/user/viewprofilepage/user-id/5180770) thanks for the quick reply and suggestion. I was hoping to use the Assets post-function's condition area as it was meant to be used, but If I can't find a way to make it work, I will definitely keep this workaround in mind. Thanks again.


Tags: jira-service-desk-data-center

jira-service-management

jira-service-management-data-center
Email signatures create large table in JIRA ticket
Asked by Rich Ollari:

When an email request from an individual with an "email signature" is sent to JIRA, the system creates a large table of each image in the signature creating this huge ticket to have to scroll through to see the actual message. This is cumbersome. Is there a way to suppress this table creation? Thanks in advance!


Answers:
author: Mikael Sandberg
body: Hi [@Rich Ollari](/t5/user/viewprofilepage/user-id/4014002),

Welcome to Atlassian Community!

If you go to Settings \> Products \> Email requests there is an option to hide email signatures. Check out [this KB](https://support.atlassian.com/jira-service-management-cloud/docs/hide-email-signatures-in-the-issue-view-and-portals/) for more information.

comments: author: Rich Ollari
body: Thank you, we'll check it out!


Tags: cloud

jira-service-management

jira-service-management-cloud
Can I set up a CSAT as an email link or QR code?
Asked by Victoria Vlad:

Hello Atlassian Community,

Could a feedback form/CSAT be designed and shared with customers easily? This would be made available to our customers via an email link or QR code. I know I can set up a CSAT on a JSM project, but those go out after a ticket is completed; we want our customers to provide feedback anytime they want and IF they give us negative feedback, I would like Jira to automatically create a ticket based on that negative feedback that my team would then action....is this possible?

Would customers need a Jira license to submit this form?

Could the survey populate a dashboard similar to the dashboards created in PowerBI? If so, would this be exportable data into presentations or Excel?

Finally, could the dashboard have an action/resolution column?


Answers:
author: Danut M _StonikByte_
body: Hi [@Victoria Vlad](/t5/user/viewprofilepage/user-id/5188972),

Not sure if you can add custom surveys.

Regarding dashboards and CSAT stats, this article might be helpful for you:

<https://community.atlassian.com/t5/App-Central/An-effective-dashboard-for-Service-Desk-and-Customer-Support/ba-p/2360369>

Danut.


Tags: cloud

jira-service-management

jira-service-management-cloud
Pie charts using the same colors
Asked by Paul Prata:

I have several pie charts to show open / closed tickets and would like to have the charts us ethe same colors, but I do not see this option.


Answers:
author: Mikael Sandberg
body: You would need an app in order to do this, the default gadgets in Jira do not allow you to configure the colors. There are multiple apps in the [Marketplace](https://marketplace.atlassian.com/search?hosting=cloud&product=jira&query=charts) that can do this. We use [Custom Charts](https://marketplace.atlassian.com/apps/1220925/custom-charts-for-jira-reports-dashboards-graphs-tables?hosting=cloud&tab=overview) and one of the reasons we selected it was the possibility to configure the chart colors.

comments: author: Laurie Sciutti
body: I second this for [Custom Charts](https://marketplace.atlassian.com/apps/1220925/custom-charts-for-jira-reports-dashboards-graphs-tables?hosting=cloud&tab=overview)!


author: Paul Prata
body: Thank you for the information, I will look into this. Is there a data limitation on showing the # of records? Some I have tested only bring 2500 records?


author: Mikael Sandberg
body: [@Paul Prata](/t5/user/viewprofilepage/user-id/5382433) Custom charts I think have a 20000 limit so your 2500 records should be fine.


author: Ivan Garcia _Appfire_
body: Hi [@Paul Prata](/t5/user/viewprofilepage/user-id/5382433)

Our own [Dashboard Hub Pro](https://marketplace.atlassian.com/apps/1223898/dashboard-hub-for-jira-reports-charts?tab=overview&hosting=cloud) is also a great option to customize your pie charts :)

Select your preferred colors, show/hide and move segments to set it your way.

In this example ? I selected the actual colors of Jira statuses to improve semantics.

![Screenshot 2024-06-11 at 11.13.14.png](https://community.atlassian.com/t5/image/serverpage/image-id/329099i630E279CC3D50103/image-size/large?v=v2&px=999 "Screenshot 2024-06-11 at 11.13.14.png")

comments: author: Paul Prata
body: I have leveraged this and does allow me to control the colors, but only brings back 2500 records. There is an issue with this and a fix but no ETA on the release of the fix.


Tags: jira-service-desk-cloud

jira-service-management

jira-service-management-cloud
Unable to connect to MySql8.0
Asked by dipankardas:

My bitbucket-pipelines.yml script was working fine a couple of commits ago. Now, I see the following error. Please find attached a screenshot of the same.

ERROR 2002 (HY000): Can't connect to MySQL server on '127.0.0.1' (115)

Attaching my bitbucket-pipelines.yml as well.

I checked the forum and tried a recommended solution to move the - services section above the -script section. But it didn't work, either.

Any help would be appreciated.

Thanks

Dipankar![bitbucket_error.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/279453i2B207C3DF96FF2C6/image-size/large?v=v2&px=999 "bitbucket_error.jpg")![bitbucket-pipelines.yml.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/279454i859190C8932863E1/image-size/large?v=v2&px=999 "bitbucket-pipelines.yml.jpg")


Answers:
author: Theodora Boudale
body: Hi Dipankar,

One limitation of Bitbucket Pipelines is that there is no mechanism to wait for service startup. The build may be failing because the mysql service hasn't started yet.

I tried running a build with a bitbucket-pipelines.yml file similar to yours and I got the same error. Adding a sleep command for 5 seconds:

```
- sleep 5
```

before the mysql command solved the issue for me. Could you give it a try and let me know if it works?

We have a request in our issue tracker to have the build wait until all services are ready:

* <https://jira.atlassian.com/browse/BCLOUD-15244>

You can add your vote (by selecting the **Vote for this issue** link) and feedback to it if you'd be interested in that.

Kind regards,  
Theodora

comments: author: dipankardas
body: It really did resolve my issue. You're awesome [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) ! Appreciate the prompt response and registering the issue in the backlog.

Thanks

Dipankar


author: Theodora Boudale
body: That's good to hear Dipankar and you are very welcome!

Please feel free to reach out if you ever need anything else!

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
How to view bitbucket pipelines test result in jira builds test results?
Asked by Solo Omsarashvili:

We have integrated Jira and Bitbucket. When our tests run on Bitbucket, we can see them in Jiras Development popup in Builds tab. When pipeline finishes and tests fail, we can see results in Bitbucket but cannot in Jira. It just shows red circle with x in it and Test results column stays empty. Successful runs don't show up in Bitbucket if that helps. Is there any documentation on how to make test results visible in Jira from Bitbucket?


Answers:
author: Theodora Boudale
body: Hi Solo,

Thank you for reaching out. I'm afraid that it is not possible to view test results in Jira, as Bitbucket Pipelines don't send any test info to Jira.

We have an open report about this in our issue tracker:

* <https://jira.atlassian.com/browse/BCLOUD-21742>

You can add yourself as a watcher (by selecting the **Start watching this issue** link in the ticket) if you'd like to get notified via email on any updates. You can also select the **This affects my team** link to indicate you are affected by this issue.

Please keep in mind that we don't provide ETAs and bug fixing is implemented as per our policy [here](https://confluence.atlassian.com/support/atlassian-cloud-bug-fix-policy-206865884.html).

Please feel free to reach out if you have any questions.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

jira-cloud
How to add a status badge?
Asked by Elizabeth C:

It's a Maven project using Java.


Answers:
author: Theodora Boudale
body: Hi Elizabeth and welcome to the community!

Are you referring to a status badge of a Bitbucket Pipelines build?

If so, and if your repo is public, you can use shields.io to generate a badge:

* <https://shields.io/badges/bitbucket-pipelines>

If your repo is private, you can generate your own badge during the build, upload it to Bitbucket Downloads, and then reference it in your README. You can see more details here:

* [https://jira.atlassian.com/browse/BCLOUD-12797?focusedId=2305762\&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-2305762](https://jira.atlassian.com/browse/BCLOUD-12797?focusedId=2305762&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-2305762)

Kind regards,  
Theodora

comments: author: Bitwise DEVS
body: Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)

We are currently trying to do this for the first time, is there a way to determine if a step(s) in a pipeline fails so we can generate an appropriate badge for it?  

<br />

Thanks!


author: Theodora Boudale
body: Hi [@Bitwise DEVS](/t5/user/viewprofilepage/user-id/3162676),

If you want to do that during the pipeline build, there is an option to add an after-script in a step:

* <https://support.atlassian.com/bitbucket-cloud/docs/step-options/#After-script>

The pipeline variable BITBUCKET_EXIT_CODE can be used in the **after-script** to determine if the script in the step has succeeded or failed.

If you want to get that info outside of Pipelines (e.g. in a script running on your server), this API endpoint will return the status of a build:

* <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pipelines/#api-repositories-workspace-repo-slug-pipelines-pipeline-uuid-get>

Kind regards,  
Theodora


author: Bitwise DEVS
body: Thanks!


author: Theodora Boudale
body: You are very welcome! Please feel free to reach out if you need anything else!


author: Bitwise DEVS
body: I actually created a separate [question/thread](https://community.atlassian.com/t5/Bitbucket-questions/Using-Step-or-Anchor-with-After-Script/qaq-p/2623101) instead which is more about how to utilize **after-script.**


author: Theodora Boudale
body: Hi [@Bitwise DEVS](/t5/user/viewprofilepage/user-id/3162676),

I will respond to the question you created.

Kind regards,  
Theodora


author: Bitwise DEVS
body: Going back with the Bitbucket Downloads question, if we have existing file example badge.svg then we upload a new file using  
**atlassian/bitbucket-upload-file** is it going to replace it or it will rename the new file with for example badge-1.svg?  

<br />

Thanks!


author: Theodora Boudale
body: Hi [@Bitwise DEVS](/t5/user/viewprofilepage/user-id/3162676)!

If you upload a new file with the same name as an existing file in the Downloads, the new file is going to replace the existing one.

Kind regards,  
Theodora


author: Bitwise DEVS
body: Thanks!


Tags: bitbucket-cloud

cloud
Unable to login Bitbucket - We couldn?t log you in
Asked by anuja herath:

Hi,

Receiving error "You may run into this issue when you use specific browsers or add-ons that hide the referer header for id.atlassian.com and other Atlassian sites. Check for these and then try logging in again." when log in... Seems like you need reactivate my account. Would you help me, please?


Answers:
author: Ben
body: Hi Anuja,

Thank you for reaching out to us. We will reach out to you via a support ticket shortly. Please be on a lookup for the email notification and a link to the ticket.

Thank you for your patience.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
This endpoint does not support token-based authentication
Asked by Abbas Mohammed:

I am trying to compare 2 branches of particular repository. It is giving error "This endpoint does not support token-based authentication"

the rest end point is : <https://bitbucket.org/>\<id\>/\<repo_name\>/branches/compare/\<bramcn_name\>%0Ddevelop

I have passed token and content type in to header. The same is worked for other endpoints.  
headers = {"Accept": "application/json","Authorization": 'Bearer '+bearer}  
Kindly help!


Answers:
author: Theodora Boudale
body: Hi [@Abbas Mohammed](/t5/user/viewprofilepage/user-id/5206274),

The URL that you posted can be used to compare two branches from browser. I'm afraid that it is not a REST API endpoint, which I believe is the reason for the error you get.

If you would like to get the diff of two branches via REST API, you can use the following endpoint:

* <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-commits/#api-repositories-workspace-repo-slug-diff-spec-get>

This is for comparing commits and branches as well. If you want to compare two branches, then the URL should look as follows:

```
https://api.bitbucket.org/2.0/repositories/workspace-id/repo-slug/diff/feature..main
```

where

**workspace-id** replace with the id of the workspace where the repo belongs  
**repo-slug** replace with the slug of this repo  
**feature** replace with the name of the source branch  
**main** replace with the name of the destination branch

Please feel free to let me know how it goes and if you have any questions.

Kind regards,  
Theodora

comments: author: Abbas Mohammed
body: Thanks, it is working fine.

As I need to know whether source branch is merged to destination or not, I used /diffstat/

i.e.,  
base_url/\<repo\>/diffstat/\<source_branch\>..destination_branch  
with the response, I am comparing  
len(res\['values'\])==0=\> merged else not merged.  
Is there any alternate to check whether source branch is merged to destination branch or not?


author: Theodora Boudale
body: Hi Abbas,

Thank you for the update! It's good to hear that it is working well for you.

There is no other endpoint that provides this info for branches. You can get that info for a specific pull request from [this endpoint](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pullrequests/#api-repositories-workspace-repo-slug-pullrequests-pull-request-id-get), but for branches you can use the diffstat one.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
printf x1d+ docker container run x5c bash: --volume=/opt/atlassian/pipelines/agent/build:/opt/atlass
Asked by tayyab_liaqat:

- step:  
name: Deploying on Production App Service  
# deployment: "Production"  
script:  
- echo "Good to deploy!  
- ls -la  
- ls -la /opt/atlassian/pipelines/agent/build  
- pwd  
- echo $BITBUCKET_CLONE_DIR  
- pipe: atlassian/azure-web-apps-containers-deploy:1.2.0  
variables:  
AZURE_APP_ID: $AZURE_APP_ID  
AZURE_PASSWORD: $AZURE_PASSWORD  
AZURE_TENANT_ID: $AZURE_TENANT_ID  
AZURE_RESOURCE_GROUP: $AZURE_RESOURCE_GROUP  
AZURE_APP_NAME: $AZURE_APP_NAME  
DOCKER_CUSTOM_IMAGE_NAME: $DOCKER_CUSTOM_IMAGE_NAME:$BITBUCKET_COMMIT  
DOCKER_REGISTRY_SERVER_URL: $DOCKER_REGISTRY_SERVER_URL  
DOCKER_REGISTRY_SERVER_USER: $DOCKER_REGISTRY_SERVER_USER  
DOCKER_REGISTRY_SERVER_PASSWORD: $DOCKER_REGISTRY_SERVER_PASSWORD  
SLOT: 'staging'  
DEBUG: 'true'


Answers:
author: Syahrul
body: G'day [@tayyab_liaqat](/t5/user/viewprofilepage/user-id/5311051)

Welcome to the community!

Could you please provide me with additional context regarding the issue you encountered? The YAML file and the title alone don't provide sufficient information for me to understand what is happening.

Regards,  
Syahrul

comments: author: tayyab_liaqat
body: Title of the thread is the error im getting and context i provided is the actual bitbucket pipe...i have created sp in azure through portal...and created its secret and added them into repository variables...but on this step i get error


author: Syahrul
body: Hi [@tayyab_liaqat](/t5/user/viewprofilepage/user-id/5311051)

Noted. I have created a support ticket for you to continue the investigation. Please find the support ticket at our support portal:

<https://support.atlassian.com/requests>

Regards,  
Syahrul


Tags: azure

bitbucket-cloud

bitbucket-pipelines

cloud
Merge Button is Disabled
Asked by Eshan Konu:

Hi,

I am using a free bitbucket workplace and I have two admins. One admin has the privilege to merge pull requests and the other one doesn't have. The merge button is greyed out and when hover over the button there's a msg saying that "Must pass merge checks before merging".

What could be the reason for this? I checked the repository and there's no merge checks configured.


Answers:
author: Patrik S
body: Hello [@Eshan Konu](/t5/user/viewprofilepage/user-id/5311024) ,

It seems you were affected by an incident where some customers were experiencing issues merging pull requests via the website.

Our development team has already implemented a fix and the incident has been resolved.

For further details, you can check Bitbucket Status page :

* <https://bitbucket.status.atlassian.com/incidents/9zyllwhrxk5v>

We apologize for any inconvenience this caused to you and your team.

Thank you!

Patrik S


Tags: bitbucket-cloud

cloud