youngmon/atlassian-qna huggingface dataset:
Oauth jira authentication client returns 405 when requesting token
Asked by Lingxiao Wu:

Hi all,

I am following instructions at <https://developer.atlassian.com/cloud/jira/platform/jira-rest-api-oauth-authentication/> to get the access token for jira api access. However, at the step of requesting temporary token by calling the request-Token endpoint(/plugins/servlet/oauth/request-token), it keeps returns 405 Method Not Allowed for me. When I changed the method from "post" to "get", this error is gone, however returns null token. So it looks to me my private key and consumer key are passed correctly, so what could be wrong?

com.google.api.client.http.HttpResponseException: 405 Method Not Allowed  
at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1070)  
at com.google.api.client.auth.oauth.AbstractOAuthGetToken.execute(AbstractOAuthGetToken.java:73)  
at com.atlassian.oauth.client.example.JiraOAuthClient.getAndAuthorizeTemporaryToken(JiraOAuthClient.java:37)  
at com.atlassian.oauth.client.example.OAuthClient.handleGetRequestTokenAction(OAuthClient.java:69)  
at com.atlassian.oauth.client.example.OAuthClient.execute(OAuthClient.java:51)  
at com.atlassian.oauth.client.example.ClientMain.main(ClientMain.java:18)

Process finished with exit code 0

My config.properities file is:

jira_home=https\\://jira-test.company.com  
consumer_key=userconsumerkey  
private_key=x2DbAIBADANBgkqhkiG9w0BAQEFAASCAmIwggJeAgEAAoGBAL0n4Cl6g77wLviGZCby50Ba/LlUa2JNpqtCKbi0ZwqUHDKxpbO3vbCHowFPKBDi2wz0rjHj/YltcUfkomP8j8ZuqRavREoBPBVzl08jz08CwVtxSdd5qjknAv9PJ6CQy4Z/pGuVKj5d9zowoirOGF8W2uquZae1SPPkGS1TAN45AgMBAAECgYEArGvbxpN54iOX/UyroGFMcHo/4kPUetAje/qcg1RWlOr7ZS5PyClVzMNmz7uy3umbGQ00eB/FrW7IkusTJ6dB+eGPYdRC3zT28F8/siXVKo+KUcgvQGXNnmnlGmZzOQho2d3gWms83V+NXeQmZw1rqe8YQZ32r3fXQe5+96D+xQECQQDwMuXrom082DGMLIa+8b392GKMYb8VJc8wMf35Ouxj9dP6q50989f/xSK34apTpM06VuEG0EV1/X2qU/4l0zihAkEAyZlhOD22dQr1ySdrmzOsfCdOERi48zWX5FCFmFKi6Cv45fBbwNgYQxv+xXfCYgFGWdw2pA4wZN2AdcTvaUhGmQJBAObtGC0tcHZBp4kLOdSTl0RYZ45tXwcW3ZWJSpH1O1Vy/wSNP1RTfcNxpK0xH4rg80n2QsuJKm6gcdNygvGcm2ECQEpq0/huz2tlIFWgt5gS+xjZaXfmKF+e6PLexnH0Dy6lDLvUfgoxusMLEoDSNG75CX8iSwlEM5kIKuNOTxIOHAECQQCmfDnhNmIyFnFqny1I7DhaobE7FjOjn57P4qN1yr9E7IKU7psT3VvIUljO41aqe42NuN3/4C0+9CIn+ugLtIJl

thank you very much


Answers:
author: Sam Harding
body: Hi there!

Firstly, I would strongly recommend you delete/edit this post to remove config.properties information from the post, as it contains sensitive information that you do not want shared.

Secondly, I do not think this is the right place to post this question, as this is the community for the Automation for Jira. I think you're looking for 'Jira' community, so maybe remove this post and repost your question (without the key info) there.

Thanks!

comments: author: Lingxiao Wu
body: Thank you for your response.

I did modify the private key and other confidential info when posting here but thank you for bringing this up

Just an update the issue is fixed by not using string concat for the private key string, instead of converting it to one line string.


Tags: authentication
automation - prevent automation rules create a issue if already created one similar
Asked by Federico Reynero:

i want to create a issue in a specific project (AYISA) when a specific user ("PEPE") add a comment on any project. This is a global rules and trigger with "add comment".  
I want to have a clone of the original issue commented, not interest in the comment itself.  
The problems is when user add another comment in the same issue, automation rules create a new ticket. That is what i call "duplicate issue" and i dont want this new ticket.  
In other word, if a particular issue trigger automation rules (means clone was created in AYISA), do not trigger that rules for that issue anymore.  
It is possible?  
thanks in advance

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


Answers:
author: Andreas Knecht
body: Hi Federico,

So I reckon the best way to solve this, is by linking the two issues and then adding a 'Related issues condition' to your rule to check if a linked issue already exists.

So a rule like this would work:

* Trigger: Issue commented
* JQL condition (like you have today)
* Related issues condition that checks \*no\* linked issues exists (could also use JQL here)
* Clone the issue to AYISA
* Link the most recently created issue to the trigger issue

Hope that helps!

Cheers,  
Andreas


author: Federico Reynero
body: I think something like when automation rules is triggered for first time (means specific user add a comment) in the clone issue add a custom field populated with the {{issue.key}}. If triggered again from the same ticket, compare that field with the source issue.key and if the same don't create new issue, do nothing.

IMPORTANT: I cant touch source issue. (cant add a label or something)
Action "Send email" with "Lookup issues" - cannot visualise issueType
Asked by Petar Andreev:

Hi guys!

I am setting up an automation to send an email when a fix version is released.

Setup:

1. **Trigger** : When version released
   1. **Then**: Lookup issues
   2. **And** : Send email  

      Contents:  
      \<ul\>  
      {{#lookupIssues}}  
      \<li\>\<a href="{{url}}"\>{{issueType}} - {{key}} - {{summary}}\</a\>\</li\>  
      {{/}}  
      \</ul\>  

The result is a sent email without the issue type. I have tried with both

    {{issue.issueType}} - the issue type{{issue.issueType.name}} - the name of the type of issue.

but the result is the same. Any ideas?


Answers:
author: Petar Andreev
body: After trying again this worked {{issuetype.name}}
Error in Automation, how do i create a regular ticket and assign to a board ?
Asked by Kannan Balasubramanian:

the below error happens

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


Answers:
author: Gikku
body: Hi [@Kannan Balasubramanian](/t5/user/viewprofilepage/user-id/3923628)

Please try the rule similar to below.

![Automation.png](https://community.atlassian.com/t5/image/serverpage/image-id/101075i0482DF67BA0C5612/image-dimensions/367x497?v=v2 "Automation.png")

comments: author: Kannan Balasubramanian
body: Hej Mathew,

It worked wonders.

Thanks


Tags: cloud
Is it possible to show a popup window with a custom message?
Asked by Jorge:

I'm creating an automation and when a ticket is moved to In Progress with 0 Points I would like to warn the user of this, so they take action to estimate the ticket.

It would be helpful to have a popup window as an action so we include a message in the window indicating the fact and user just dismiss the message.

Thank you,

Jorge


Answers:
author: Daniel Eads
body: Hi Jorge,

Automation doesn't currently let you pop up a modal window for the user to work with on certain actions.

However, this sounds like a case for a workflow validator. Validators check that any input made to the transition is valid *before* the transition is performed. Input can include that gathered from the user on the transition's screen. You could add a validator that checks your story points field to make sure it has a non-0 value. When the user tries to transition the issue, they will be prompted to set the points, or else they won't be able to transition the issue. [More reading about workflows and validators is available here](https://confluence.atlassian.com/adminjiracloud/advanced-workflow-configuration-776636620.html#Advancedworkflowconfiguration-validators) if you need it.

Cheers,  
Daniel

comments: author: Jorge
body: Hi Daniel,

I applied the validator and is working great!

Thank you!

Jorge
?original estimate ?Time spent usage
Asked by Taeseok Ou:

Lets say there is an parenet JIRA issue and under it, it has 3 Sub-tasks.

each sub tasks has each own Original estimate and Time logged.

To sum them to show in parent JIRA issue ticket, is it right to use following field in parenet JIRA Issue type?

?original estimate

?Time spent


Answers:
author: Andreas Knecht
body: Hi [@Taeseok Ou](/t5/user/viewprofilepage/user-id/3981869) ,

So to solve this you can use our new aggregate math functions to sum up the original estimate on all sub-tasks. For example here's a rule that will sum up the original estimate whenever it changes on a child issue and update the parent:

![sum-estimates.png](https://community.atlassian.com/t5/image/serverpage/image-id/100780i784C009E9DAD62CF/image-dimensions/771x516?v=v2 "sum-estimates.png")

The smart-value that you need is this:

```
{{#=}}{{issue.subtasks.timetracking.originalEstimateSeconds.sum}}/60{{/}}
```

(the division by 60 is necessary, since the original estimate field requires its input in minutes)

To aggregate the 'time spent', you probably want a second rule that looks something like this:

* Trigger: Work logged
* Condition: issue type is sub-task
* For parent related branch
  * Log work on parent issue (and copy value from trigger)

Hope that helps!

Cheers,  
Andreas

comments: author: Taeseok Ou
body: Thank very much Andreas for detailed and kind solution.

By the way,

what is then following two for which purpose?

?original estimate

?Time spent


author: Taeseok Ou
body: oh,,,, the other Reply on my other similar question says below what I asked just above thread. Thanks!

----

We have a feature request created with our development team to get it implemented:

[Sum estimates from sub-tasks in user stories](https://jira.atlassian.com/browse/JSWCLOUD-9167)


author: Peder Alm
body: [@Andreas Knecht](/t5/user/viewprofilepage/user-id/502325) I got this example to work, but how do I present the result in a pretty print format, e.g. "2d 4h"?
Copy multiple linked issues to a custom field in JIRA
Asked by Jagadeesh Dereddy:

Hello,

I would like to have the "Issues linked" copied to a custom field in JIRA. I have configured an automation rule to copy the {{destinationissue}} using set value when the issue is linked. This will just copy only one linked issue. If there are multiple issues linked, I would like to see all the linked issues (Key) copied in the custom field.

Is it possible with automation rules?


Answers:
author: Dea
body: "I have configured an automation rule to copy the {{destinationissue}} using set value when the issue is linked"  

Do you mind sharing how to setup this automation rule [@Jagadeesh Dereddy](/t5/user/viewprofilepage/user-id/3984714)?


author: Jagadeesh Dereddy
body: I am able to achieve the solution with this logic : {{issue.issuelinks.outwardIssue.key}},{{issue.issuelinks.inwardIssue.key}} when an issue is linked using the Link button and considering any issue types (like clones, is cloned by, relates to,..).

However, in this specific scenario the automation rule is not triggering to update the custom field on the original issue if the issue is cloned by using "Clone" button. As an example, on issue XYZ-1 click on clone button then creates new issue XYZ-2. The custom field on XYZ-1 is not updated through the automation rule to update the "inwardIssue".


author: wwalser
body: I'm not sure how Jira's cloning works, exactly, but it sounds like the automation trigger is not being fired when the clone button is used.

I assume you're using 'issue linked' trigger?

You could try adding an additional rule that uses the 'issue created' trigger to check for linked issues on newly created issues. That would involve a few more steps.

----

Trigger: issue created

Condition: Issue field condition, Links, Is not empty

Branch rule: Linked issues, all link types.

+ Action: Edit issue, use the logic you've already built above.
Can We Integrate UFT BPT framework with JIRA
Asked by Shridevi Salagare:

I have seen article about JiRA integration qith UFT with Xray ,but couldnt find any information about UFT with BPT(business process testing)framework


Answers:
author: Yvan Martin
body: Developer from Atlassian here.  

We don't have any deep integration with those particular third party tools.   

Regarding integration we do have actions to make outgoing web requests, as well as listing to incoming web requests depending if the external tool can be setup in a way to send or receive data in the correct format. We've got a page that mentions third party integration on our support docs here: <https://support.atlassian.com/jira-software-cloud/docs/what-third-party-applications-can-i-integrate-with/>

There are a few articles that do mention using Xray with web requests such as here: <https://confluence.xpand-it.com/display/XRAY360/Extending+and+integrating+with+Xray+using+Automation+for+Jira>. But it's something you'd have to try and play around with.  

If you require further help with your automation rules then you can contact Atlassian support for more details: <http://support.atlassian.com/>  

I hope this helps.
"User condition" which is based on Role or Permission?
Asked by Sean Roberts:

In Jira Automation or JQL, is it possible to match issues based on the**role or permission of the user.**

Such as with the "User Condition", "Advanced Compare Condition", or other option?  

e.g. User condition:

* - User: User who triggered the event
* - Check to perform: User has permission
* - Criteria: Move issues

Or "User is in role".

*p.s. maybe possible in JQL with ScriptRunner?*


Answers:
author: Mark Chaimungkalanont
body: Hey there Sean,

You can 't check for permissions directly but you check for a user's role using the user condition.

![Automation_rules_-_Code_Barrel_JIRA.png](https://community.atlassian.com/t5/image/serverpage/image-id/100824i38F5986E1BB9B125/image-dimensions/575x325?v=v2 "Automation_rules_-_Code_Barrel_JIRA.png")

Hope that helps!

Cheers,

Mark C


Tags: scriptrunner
automation and lookup issue
Asked by cendre:

Hello

As descrive in <https://community.atlassian.com/t5/Automation-articles/Send-a-list-of-issues-in-Slack-with-Jira-automation-s-newest/ba-p/1411819#M73>, a new action for automation named "lookup issue" is available

But I can't find it on the list. Anyone to help me ?

(I have the automation v7.1.15 on Jira server 8.5.3)

![2020-06-24_11h28_32.png](https://community.atlassian.com/t5/image/serverpage/image-id/100260i0B9C7623120D9F51/image-size/large?v=1.0&px=999 "2020-06-24_11h28_32.png")

Thank a lot


Answers:
author: Sachin
body: Hello Cendre, the article you referred to is applicable for Jira Cloud and not Server unfortunately. You can read more [here](https://support.atlassian.com/jira-software-cloud/docs/automation-actions/?_ga=2.149488498.516050260.1593026234-883079073.1593026234#Automationactions-Lookupissues)

comments: author: cendre
body: Hello Sachin

Thanks for your answers.

Is any kind of action available to simulate the "lookup issue" action ?

I try to send automaticly one mail with all issue "status = to released" when the sprint end (at the trigger of the end of the sprint, not on particular day...)

Best regards


author: Sachin
body: Hey Cendre, I am sorry but I can't think of anything similar to lookup issue action, you can contact their [support](https://support.atlassian.com/contact/#/) team for more help.


author: Taiwo Akindele
body: raised a feature request <https://jira.atlassian.com/browse/JIRAAUTOSERVER-53> to track this for the server app
would like to turn off the option of automation for Jira comment
Asked by jennifer:

How can I turn the automation for Jira comment off ?

I don't wanna use the automation-comment.

What can I do ..? Could u help me please ..\~


Answers:
author: Jane Yeoh
body: Hi Jennifer,

Thanks for your question! To clarify, are you referring to notifications for a rule that is sent from Automation? Or are you referring to comments added to tickets that are performed by an automation rule?

If you can send a screenshot of an example of this comment you are seeing, that will help us in figuring this out for you. Looking forward to hearing back.

Kind regards,

Jane (Jira Automation)

comments: author: jennifer
body: ![KakaoTalk_20200629_154411.png](https://community.atlassian.com/t5/image/serverpage/image-id/100827i19108983A1B7DA42/image-size/large?v=v2&px=999 "KakaoTalk_20200629_154411.png")

Please, help me with this .

Thank you.


author: Jane Yeoh
body: Hi Jennifer,

Thanks for your reply and the screenshot.

It looks like a rule has been set up to add a comment onto an issue when a linked issue has been resolved. If this is not what you want your rule to do, you (or your global admin) simply need to find that rule and disable this.

Kind regards,

Jane
How to migrate from SVN to Bitbucket along with numeric revision history
Asked by Rama Krishna Avanigadda:

How to migrate from SVN to Bitbucket along with numeric revision history.

Also need assistance with deployment of individual files to Oracle EBS server and compile based on type of the file.

Ex: If the file type is of .pkb (package body) or .sql , once the file moved to server, respective file to be compiled in associated Database.

If the file type is of .java, once file is moved to server, the java file has to be compiled to generate a .class file.


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

It is important to understand that there is a third piece of software involved here. Bitbucket is not a Source Control Management system like Subversion, it is a management layer for an SCM - underneath Bitbucket, there is a git system running.

What you would be migrating between is Subversion and git, not Subversion to Bitbucket. You've then chosen to use Bitbucket on top of git, to manage it all.

Atlassian have a really good guide to doing this - see <https://www.atlassian.com/git/tutorials/migrating-overview>

Note that although git will import every commit you have made, with a proper history including the core stuff like who did what and when, it does work very differently to Subversion, so your versions may not work the way you expect from Subversion.

The second part of your question is about build services, not source control. Importing packages or databases, or compiling code is a build process. You will need to look at what your current build processes do (note that they are not in Subversion, they just read the code from Subversion when building), and decide whether you want to rebuild them in Bitbucket-pipelines (if you're on Atlassian Cloud) or Bitbucket-runners (if you're on Server/DC), or keep whatever is currently doing them, and tell it to pull the code from git instead of Subversion.


Tags: unknown-hosting-type
failing to receive recovery / any email on other account
Asked by steven:

having trouble receiving recovery / any email for [@Steven Vroman](/t5/user/viewprofilepage/user-id/3170784) (ending on \*\*\*opcom.be). i have read there is a internal suppression list, any chance its on there ? went trough other steps (email should be fine now) , it wasn't went i tried first 3 times (couple hours ago)


Answers:
author: Ben
body: Hi Steven,

We have checked our email logs and have found that we are successfully sending emails to your mail server however the following error was received from your mail server for the email address:

```
554 5.7.1 [internal] recipient address was suppressed due to customer policy

```

This error is encountered on your mail server when any of the following conditions are met:

* The address was invalid (address does not exist)
* The user clicked the list-unsubscribe header
* The user clicked one of your emails and flagged it as SPAM. This FBL (FeedBack Loop) event should add that email address to your Suppression List.

I have removed the email address from the suppression list, so you may now try triggering emails again and let me know how it goes.

I would also suggest reaching out to your email administrator to whitelist our email accounts as follows, to prevent the issue from occurring in future:

```
noreply@am.atlassian.com
no-reply@atlassian.com
noreply@mailer.atlassian.com
notifications-noreply@bitbucket.org
```

For your reference, we also have a knowledge article online that details the email troubleshooting process in further detail:

* [Email notifications not working](https://confluence.atlassian.com/bbkb/email-notifications-not-working-1224343600.html)

Cheers!

- Ben (Bitbucket Cloud Support)


author: steven
body: ty all good, it was condition one, was temporary removed for couple of days (also when i tried the first couple of times)


Tags: bitbucket-cloud

cloud
deploy artificats to private server using scp
Asked by sri harsha:

Hi Team,  

I am using bitbucket runner in my pipelines. can you guide us to deploy this artifacts in private server(i.e doesnot contain public ip) using scp pipe or pipelne script


Answers:
author: Theodora Boudale
body: Hi [@sri harsha](/t5/user/viewprofilepage/user-id/5393564) and welcome to the community!

What type of runner are you using? Is it Linux Docker, Linux Shell, MacOS, or Windows runner?

Pipes can only be used with Linux Docker runners. If you are using this type of runner, you can check the README of the scp-deploy pipe here:

* <https://bitbucket.org/atlassian/scp-deploy/src/master/>

This has details and examples of using the pipe. In the SERVER variable, you will need to use the private IP of the server you want to deploy to.

If you are using a Linux Shell, MacOS, or Windows runner, the builds don't run in Docker containers but directly on the host (in Bash for the first two and PowerShell for the latter). The commands in your bitbucket-pipelines.yml file script are Linux or PowerShell commands. So, you could use an scp command in your yml file to deploy to a private server. The scp command can be used also with Linux Docker runners.

You can check the man page of the scp command here:

* <https://manpages.ubuntu.com/manpages/trusty/en/man1/scp.1.html>

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Does the Code Owners file work without using Marketplace apps?
Asked by Andr? Beserra de Souza:

Using this [article](https://confluence.atlassian.com/bitbucketserver/code-owners-1296171116.html) as a base , I tried using the CODEOWNERS file inside the *.bitbucket* folder, but I was unsuccessful.

Below is an example of my CODEOWNERS file.Is there something wrong with the content?

# CODE OWNERS  
# <https://confluence.atlassian.com/bitbucketserver/code-owners-1296171116.html>

\* user@email.com.br user2@email.com.br user3@email.com.br


Answers:
author: Dave Parrish _Atlassian_
body: Hello [@Andr? Beserra de Souza](/t5/user/viewprofilepage/user-id/5396530) ?

We have just introduced native support for CODEOWNERS in Bitbucket Cloud - no Marketplace app required.

<https://community.atlassian.com/t5/Bitbucket-articles/Automatically-assign-code-owners-as-pull-request-reviewers/ba-p/2655633>


author: Theodora Boudale
body: Hi Andr? and welcome to the community!

The documentation you linked in your post is for Bitbucket Server / Data Center and it does not apply to Bitbucket Cloud.

Your post has the tag 'bitbucket-cloud' and I can also see in our system that you are using Bitbucket Cloud. The Cloud version of Bitbucket doesn't have this built-in functionality, there is a Marketplace app that you can explore though:

[https://marketplace.atlassian.com/apps/1218598/code-owners-for-bitbucket?hosting=cloud\&tab=overview](https://marketplace.atlassian.com/apps/1218598/code-owners-for-bitbucket?hosting=cloud&tab=overview)

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

Kind regards,  
Theodora


author: Andr? Beserra de Souza
body: Hello Teodora!

Thank you very much for the welcome and the response.


Tags: bitbucket-cloud

cloud

pull-request