youngmon/atlassian-qna huggingface dataset:
Insert a template into Description field
Asked by hpatani:

Is there a way in Jira to insert a static text template in the Description field for bugs?

I want all bug filers to include some standard information in the description field - a template will help drive that behavior without creating custom fields for all that information.


Answers:
author: Arkadiusz Inglot
body: Hi,

* Out of the box Jira:  
  * You can tryhard and achieve that, but personally I do not recommend below solution.
  * As you are unable to customize/modify system's Description built-in field, you can create another custom field named "Advanced description" and add there a default value.
  * Notice 1:
    * Please keep in mind that "Default value" is a standard value and not a placeholder. It means if user does not change anything inside this field, task will be created with your "default value".
  * Notice 2:
    * Also please keep in mind that if you set "required" flag to that field it will be fullfilled from start as your "default value" is - again - a value inside the field.
  * Notice 3:
    * You will have to hide system's default "Description field" inside those project(s) and delete it from screens.
  * Notice 4:
    * Consider using automation for copying the values from "Advanced description" to to system's (hidden in that case) default Description field as it may be usefull for any JQL queries or in dashboards widgets.

<!-- -->

* Script-runner'ed Jira:
  * It is possible: <https://docs.adaptavist.com/sr4js/6.30.2/features/behaviours/behaviours-examples/setting-field-defaults#setting-system-field-defaults>

comments: author: Arkadiusz Inglot
body: [@hpatani](/t5/user/viewprofilepage/user-id/5491322)   
I did not test it yet, but saw in marketplace;

<https://stsbetsys.atlassian.net/jira/marketplace/discover/app/com.gebsun.plugins.jira.defaultvalues>


author: rim_benrejab_partner
body: [@Arkadiusz Inglot](/t5/user/viewprofilepage/user-id/5254835) thank you for your response. May I know why you don't recommend this solution (the automation with a custom field)

thanks


author: Kate Pawlak _Appsvio_
body: Hi [@hpatani](/t5/user/viewprofilepage/user-id/5491322),

If you want to have prefilled fields on the native Create issue screen, you have to use the app which allows you to do it. For example, our app called [**Issue Templates Agent for Jira**](https://marketplace.atlassian.com/apps/1229162/issue-templates-agent-summary-description-custom-fields?tab=overview&hosting=cloud). You can define template not only for Summary and Description but also other fields.
How to clone an item and copy its original status?
Asked by Gabriel Kaneko:

Hello, how are you?

I'm trying to set up automation in Jira to clone unfinished issues from one sprint to another. The logic works as follows:

1. When the sprint is completed
2. For issues in the current sprint
3. If the status is different from done
4. Then clone the issue in the same project and direct it to the next sprint
5. And create a link with the last created issue
6. And transition the issue to the done status

In this automation, there is a detail that prevents me from doing what I need. When cloning the issue, all information is copied except the issue's status. That means if the issue's status is "In Progress," the clone will be born as "To Do."

Is there any way to make this clone also start with the "In Progress" status?

![Jira.png](/t5/image/serverpage/image-id/322180iB4A3E18669B41687/image-size/large?v=v2&px=999 "Jira.png")


Answers:
author: Kalyan Sattaluri
body: Hello [@Gabriel Kaneko](/t5/user/viewprofilepage/user-id/4807281)

Since you have already branched once, your only option to transition the newly created issue is to make a REST API call.

As an alternative, you could have a manual trigger which clones a story, and as part of sprint closing step, work with team and clone specific stories to next sprint and that can transition to correct status. Its not bulk option like you are trying to do but it encourages discussions prior to closing sprint. Just a thought. Hope it helps.


Tags: cloud

jira

jira-cloud
Trigger automation on field unchanged for <> time
Asked by hpatani:

Is it possible to trigger jira automation based on time a field has remain unchanged?

e.g. if a dropdown menu field has not been updated by a stakeholder for a day - I want to trigger automation to send them a reminder. Is this possible?


Answers:
author: Bill Sheboy
body: Hi [@hpatani](/t5/user/viewprofilepage/user-id/5491322) -- Welcome to the Atlassian Community!

That is not easily done, except for a few built-in fields that can use the CHANGED operator for JQL: <https://support.atlassian.com/jira-software-cloud/docs/jql-operators/#CHANGED>

A workaround is to use a date / time, custom field, setting the value when the issue is created, and whenever your dropdown field changes, and then use JQL and a scheduled trigger to check for the timeframe of interest to send the reminder.

Kind regards,  
Bill

comments: author: hpatani
body: Thank you!

Yes I was able to create a scheduled trigger based on the values of a field.
Create issue on failed automation
Asked by Sjoerd Bernards:

Hey,  

I am currently working with some automations. Getting emails can be quite annoying and to keep them on my to do list, i have to keep them in my mailbox or create a jira issue. Is there a way to automatically create an issue when an automation fails?  

Would love to have a board where the failed automations are registered as for example:  
- type: bug  
- summary: automation name  
- description: the audit log of the fail  
- due date: date of error + something (7 orso)


Answers:
author: Bill Sheboy
body: Hi [@Sjoerd Bernards](/t5/user/viewprofilepage/user-id/5457327) -- Welcome to the Atlassian Community!

There is nothing built-in to automatically create a Jira issue for a failed rule execution.

One workaround would be to use email rules in your email application to raise the visibility of the received email, such as with flagging, urgency, alerting, etc.

Another possible workaround would be:

* using your email application, create an email rule to detect a rule error notification, and forward the email to your Jira email address
* work with your Jira site admin to set up an email handler in Jira, and automatically create the new issue.

This will not contain all the information you asked for, but it will contain a link to the audit log.

**Please note well**: even this workaround will not detect all possible rule problems, at least for these cases, no rule error email will be sent...

1. When there is a logical error in a rule that shows no errors
2. When there is a user error entering Jira issue data and a rule does not trigger
3. When there is an automation engine / Jira outage and scheduled rules do not run
4. When your site has exceeded usage limits for rule, no further executions may run
5. When your site has exceeded usage limits for emails
6. When another admin has disabled (or deleted) a rule which is still needed

Kind regards,  
Bill

comments: author: Sjoerd Bernards
body: Thanks for the help, I wanted to avoid using email, but ill give it a try as it is prob the only option.


Tags: cloud
Help programming an auto-comment for when a comment is added to a closed issue
Asked by Mike Thomas:

When an issue has been resolved/canceled and someone happens to add a comment to it, the assignee is not notified due to it being closed. I wanted to create an automation to generate a comment which would then send an email in the even someone happens to add a comment on a closed/cancelled issue.

When creating this automation, it was working but what we learned was happening is when someone went to resolve a case, this new automation would kick in right away and leave the new comment because the timing/order of the case being closed, it triggered it instantly. I then figured we could establish a 1-2 minute delay, which is where I'm getting stuck.

On the attached screenshot, if I change the **Second Value** to "-2", the automation works, however we are getting the same results as before (everything happening all at once). However, when I remove the negative sign, the automation simply isn't working.

I've removed the negative sign and went in and added a comment to my test closed case, but i'm getting no results from this automation. My hope here is by removing the negative sign and once i place a comment on a closed case, in 2 minutes the automation would kick in and add the comment. Note; If I add back in the negative sign (-2), it works but for any open cases that get closed, we are back to square one where this automation kicks in and adds the comment when someone resolves the case.![jira_comment1.JPG](/t5/image/serverpage/image-id/322189i9C5EDC9304C64247/image-size/large?v=v2&px=999 "jira_comment1.JPG")![jira_comment2.JPG](/t5/image/serverpage/image-id/322190iC9870AD59AD1BD03/image-size/large?v=v2&px=999 "jira_comment2.JPG")


Answers:
author: Kian Stack Mumo Systems
body: Try this condition -

{{issue.comments.last.created.diff(issue.resolutiondate).minutes}} LESS THAN -3


Tags: cloud

jira-service-management

jira-service-management-cloud
commit trigger does run when commit is done
Asked by Anna:

Hi there,

We have Github/Jira integration in our company and I have created Commit trigger but don't see any run for it. Commit message appears in my Jira issue as expected, however, trigger log doesn't show any run. Why trigger doesn't see commit event? What I am missing here?

P.S. This issue was resolved. The webhook was configured that allowed Jira to see the required github repository. After it, all commits from github started appearing under Git Commits on the issue level.


Answers:
author: Jesus Gerardo Alvarez Pi?a
body: Hello [@Anna](/t5/user/viewprofilepage/user-id/5337719) ,

Probably is due to commit message.

Did you add jira issue key in your commits?

If we consider that your issue key is CV-2 the structure is:

* git commit -m "\<issue-key\>\<message\>"

so it'll look like:

* git commit -m "CV-2 code changes"
How to fetch the count of Successful and Failed builds over a period of time from bitbucket pipeline
Asked by Kishore:

I'm trying to fetch the count of Successful and Failed builds over a period of time from bitbucket pipeline (eg: 1-Jan to 1-Mar).

I used Bitbucket REST API to achieve the same. *<https://api.bitbucket.org/2.0/repositories/{REPO_OWNER}/{REPO_SLUG}/pipelines/>*

But apparently, I have more than 100 builds, I'm facing issue with the 'pagelen' since the maximum supported length is '100'.   

Is there any way to achieve this?


Answers:
author: Syahrul
body: G'day, [@Kishore](/t5/user/viewprofilepage/user-id/5573869)

Welcome to the community!

To ensure the stability of our platform, we only allow 100 objects per page. However, as our document mentions [Pagination](https://developer.atlassian.com/cloud/bitbucket/rest/intro/#pagination) , we will return the next page's URL that you can utilize to navigate to the next 100 objects page.

Regards,  
Syahrul

comments: author: Kishore
body: Hi [@Syahrul](/t5/user/viewprofilepage/user-id/744536) , I observed the same mentioned in the API documentation. But I can't see the next page's URL in my API response.   

Is it an optional field that it won't be provided for all API response?   

I appreciate your response, thanks  

Regards,  
Kishore


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

Thanks for the update. It looks like I missed it, there's a bug with the next page for pipeline endpoints:

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

You can try the workaround suggested in the bug report to navigate to the next page.

Regards,  
Syahrul


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

I'm not sure whether the workaround will satisfy my requirement since as per workaround I have to loop through multiple pages and collect the data to process.   

But I'll give it a try.   

Thanks,  
Kishore


Tags: bitbucket-cloud

cloud
Bitbucket Pipelines - Dependency Download Timeouts
Asked by Nick Wenner:

Hello,

We've been having some issues where our pipelines will time out attempting to download dependencies in our build/compile steps. This has happened with increased frequency this week, in particular. It's currently preventing us from pre-staging our releases.

Below is an example of one of our steps that times out attempting to download the Gradle distro: ![GradleTimeout.png](/t5/image/serverpage/image-id/343047i03C5EEBECF794A47/image-size/large?v=v2&px=999 "GradleTimeout.png")

This issue seems to be intermittent, and through no intervention on our behalf eventually our pipelines will start working again. Every time we run into the issue I check the Bitbucket status page and all services appear to be operating normally.

My primary question: Is there anything we can do on our end to mitigate this? When the issue occurs it usually affects all jobs that have egress requirements to retrieve dependencies/packages accessible via internet. Our internal-only pipelines have never had timeout issues. I know we can look into optimize our caching strategy for dependencies, but the risk remains in the event we have new dependencies to retrieve.

Any advice or recommendations would be greatly appreciated!


Answers:
author: Patrik S
body: Hello [@Nick Wenner](/t5/user/viewprofilepage/user-id/5551730) ,

welcome to the Community!

Checking internally I see you have access to a workspace with an active subscription which is entitled to Premium support. In this case, I went ahead and created a support ticket for this issue, as we'll need more details about your setup to further troubleshoot this.

You should be receiving the ticket link in your email soon. In case you don't receive it, please let me know, so I can share it here (the ticket is only visible to you and Atlassian).

Thank you, [@Nick Wenner](/t5/user/viewprofilepage/user-id/5551730) !

Patrik S


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Git push didnt work , without error codes.
Asked by Lorenzo Campanella:

Hello everyone. We are having a problem on different computers, on different repositories and on different networks. Neither me nor other colleagues can push but we don't get error codes. Other teammates who had the problem were suddently solved. We have tried changing the **.git** credentials, setting up the credentials via **app password** or **ssh** , etc. We also made different modifications to the files by generating new commits and there is no way. We can do git pull without problem but when it comes to git push it is impossible. **All our checks indicate that we are authenticated correctly** . When doing the git push both through VS CODE interface and bash it **gets stuck without progressing but without errors** .  

I show below some pictures of how everything looks like after making a push. It looks like this, without advancing, without anything.

![Captura de pantalla 2024-08-21 105243.png](/t5/image/serverpage/image-id/343001i3021E3C5BBDE5D30/image-size/large?v=v2&px=999 "Captura de pantalla 2024-08-21 105243.png")![Captura de pantalla 2024-08-21 105448.png](/t5/image/serverpage/image-id/343003i71F8A0BC003D0E55/image-size/large?v=v2&px=999 "Captura de pantalla 2024-08-21 105448.png")


Answers:
author: Ben
body: Hi Lorenzo,

Please raise a ticket directly with our support team using the workspace URL for the paid workspace that you are a member of. We cannot troubleshoot this further on a public forum such as community, as troubleshooting requires revealing sensitive information and a formal ticket is needed to grant ourselves access to check your repo in the backend:

* <https://support.atlassian.com/contact/>

If you are unable to raise a ticket, please let me know the timezone you are in so I can raise one on your behalf and get it routed through to the correct team.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
user activity stats from Bitbucket
Asked by Irina Zagarina:

**Background:**   
Our team needs a detailed statistics from **all projects \& repos in a single report**. The plugins do not provide such data, so we're considering fetching them through API calls or DB queries. We will need this information on a regular basis.

**What needs to be done:**

* Investigate possible ways to extract the desired statistics, either through the Bitbucket API or directly from the database.
* Extract information on how many pull requests each "Brothers" user has approved across **all repos \& projects** in Bitbucket.
* Extract information on how many comments each "Brothers" user has left across **all repos \& projects**.
* The information should cover at least the last month, but preferably the last three months.


Answers:
author: Uladzislava Kastsitsyna _Stiltsoft_
body: Hi Irina,

I think that our app [Awesome Graphs for Bitbucket](https://link.stiltsoft.com/stxzuz) could be helpful here!

We offer [a wide array of pull request metrics](https://link.stiltsoft.com/7rfv64), including commenting and approval activity ([Contributions Report](https://docs.stiltsoft.com/awesome-graphs/data-center/pull-requests-analytics/contributions-report)). This information can be viewed on a project level.

![Activities in Pull Requests?](https://stiltsoft.com/wp-content/uploads/2023/12/bitbucket-pull-request-stats.png)

If you are looking to export data on the level of the whole instance, consider taking a look at [our REST API capabilities](https://link.stiltsoft.com/u6d4cr). Here is an example of pull request data you can get using our app:

![](https://docs.stiltsoft.com/awesome-graphs/files/data-center/42244605/71861794/3/1715863647026/06-prs-table.png)

[User activity across all projects and repos](https://link.stiltsoft.com/4tljps) is also available in-app:![bitbucket view user activity](https://stiltsoft.com/wp-content/uploads/2023/09/detailed-view-contributor-graph.png)

Would be happy to answer any of your questions.

Best regards,  
Vlada from Awesome Graphs


Tags: bitbucket-data-center

bitbucket-server

data-center

server
cannot find test files while running tests through pipeline
Asked by sschroders:

I have some test date in files setup for my test cases. I have these as embedded resource setup which are copied when newer in visual studio. however, when I run my tests through bitbucket pipeline I get the following error:

**Could not find a part of the path** '/opt/atlassian/pipelines/agent/build/Athene/Micro Services/Excel Services/ExcelServiceTests/bin/Release/net8.0/Test Data/test.xlsx'.

How can i fix this?


Answers:
author: Patrik S
body: Hello [@sschroders](/t5/user/viewprofilepage/user-id/4412281) ,

thank you for reaching out to the community.

When running tests in a CI/CD pipeline like Bitbucket Pipelines, you need to ensure that any required files are available at the expected path during the test execution.

My understanding is that you have some static test files that are used during the tests executed on your pipeline. In this case, you need to make sure that your test data files are included in your repository.

Files needed for testing should be committed to the repository so they can be checked out during pipeline execution.

Thank you, [@sschroders](/t5/user/viewprofilepage/user-id/4412281) !

Patrik S

comments: author: sschroders
body: [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) Thanks for reaching out, the files are committed to the repository and to be sure i downloaded the build in an artifact and checked that the files are where there where expected. what I am not sure though is if this part of the path is correct: "/opt/atlassian/pipelines/agent/build'

any help would be greatly appreciated as we still don't have a resolution


author: Patrik S
body: Hey [@sschroders](/t5/user/viewprofilepage/user-id/4412281) ,

The path "/opt/atlassian/pipelines/agent/build" is the default build path of pipelines, and where pipeline will clone your repository during the build setup.

In order to confirm if the files are indeed there, could you add the following **ls** command in your pipeline step and check if the files are there ?

```
ls -LaR
```

This should print the directory structure and all the files inside it recursively.


author: sschroders
body: [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) Thanks for the help this helped me find what was wrong :) the folder name, in the repo was with small letter Test data and in the test with capital Test Data


author: Patrik S
body: Awesome! Glad to have been of some help [@sschroders](/t5/user/viewprofilepage/user-id/4412281) !

If you ever need help in the future, feel free to reach out :)


Tags: .net

bitbucket-cloud

bitbucket-pipelines

cloud

tests

xunit
How to trigger jobs in jenkins which is in private network by bitbucket Webhook
Asked by ThangaTamilvanan:

Hi Everyone,

I was not able to trigger jobs in jenkins server with PR approval and merge by Bitbucket Webhook. Jenkins server is in Private N/w with private IP only.

I see 403 Error in the bitbucket. I have tried Generic-webhook too.

I tried IP whitelisting of following IP but no luck.

* 104.192.136.0/21

* 185.166.140.0/22

* 13.200.41.128/25

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


Answers:
author: Patrik S
body: Hello [@ThangaTamilvanan](/t5/user/viewprofilepage/user-id/5573119) ,

and welcome to the community!

The way that web-hooks works is by sending a request to your server when an event has triggered it. For Bitbucket Cloud to be able to send the request, your server will need to have a public IP address and be reachable through the internet.

It's not possible to send web-hook requests to private IP addresses or private network. If your Jenkins instance is under a private network, you'd at least have some sort of gateway/proxy with a public IP address that redirects the requests from Bitbucket to your internal Jenkins ip address.

For a full list of Bitbucket Cloud web-hooks IPs, you can refer to the documentation below:

* [Valid IP addresses for webhook delivery](https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/#Valid-IP-addresses-for-webhook-delivery)

Those IP addresses must be allowed in your firewall so Bitbucket can connect to it.

I hope that helps! Please let us know if you have any questions.

Patrik S


Tags: bitbucket-cloud

cloud
I can't find my repository.
Asked by kisokpos:

I can't see the repository I've selected.

I have two repositories, and while I can see the 'Agent' repository without any issues, the 'androidpos_kis' repository is not visible in the web interface (Chrome). However, I can still commit, pull, push, and create branches in SourceTree and Android Studio without any issues. When I try to access the repository through its URL, I can view the page, but when I try to look at the commit history or other details, I get the following message:

'Something went wrong...  
While we check things on our end, contact support if the problem persists.

Try again'

What should I do?"


Answers:
author: Patrik S
body: Hello [@kisokpos](/t5/user/viewprofilepage/user-id/5572904) ,

and welcome to the Community.

The issue of the repository not loading may be related to your local browser, such as cache/apps that are affecting the load of the page. I'd suggest trying to load the page using your browser's incognito mode, so we grant the cache and any browser extensions are not playing a role in this issue.

As for not finding the repository in the website, I see you have access to more than one workspace, so you may be looking at the wrong one.

You can change workspaces by clicking on your **Avatar in the top right \> All workspace**. From that list you can access different workspaces and confirm if you find your repositories in any of them.

I hope that helps!

Thank you, [@kisokpos](/t5/user/viewprofilepage/user-id/5572904) !

Patrik S


Tags: bitbucket-cloud

cloud